User forums > Using Code::Blocks

Project file hierarchy messing with project compilation

<< < (2/2)

dmoore:
http://lmgtfy.com/?q=does+compilation+order+matter+in+C%2B%2B

You most likely have other issues. Are you getting compilation or link errors?

aluthren:
The only errors I'm getting come from the fact that main.cpp isn't being compiled first. I'll look at it again.

dmoore:
What is the error message?

Alpha:
If you right-click on a file, you can change its compile weight under the properties to force it to compile sooner/later.  (Files of the same weight are compiled alphabetically.)
However, as others have already mentioned, the problem is most likely from something else (compile order rarely matters within a target).

Navigation

[0] Message Index

[*] Previous page

Go to full version