User forums > General (but related to Code::Blocks)

multiple cpp files using codeblocks

(1/3) > >>

computer_tech:
Hello,

I have a newbie questions. For the life of me i cannot figure out a way to compile multiple files with codeblocks.

Can anyone give me a working example of HelloWorld using multiple cpp files.

Do i have to create a project to use multiple cpps?

oBFusCATed:
Yes, you have...

ewww:
Wouldn't this option allow for better compiler optimization, when used along with unit-at-atime?

I have made this manually as a post-build step, however this is way too inflexible for a multi-developer project.

Where is it placed on the to-do list, if at all? :) Maybe someone could give an estimate of how big this task would be? Doesn't seem like a complicated task at first thought, I have never looked into how the gcc compiler driver handles things internally though.

oBFusCATed:
WTF?  :shock:  :shock: I don't get anything from that you've said!

ewww:
Right... hehehe

I was looking for the option to compile multiple files at once in order to have optimized release builds. Since this feature in not present in cb, i have considered i could go on and implement it myself (hopefully my c++ is better than my English?), but before that someone, who already has an overview of the project, could give an overview of what should and shouldn't be done to achieve that.

Navigation

[0] Message Index

[#] Next page

Go to full version