User forums > Using Code::Blocks
Can't compile new file in a project.
(1/1)
Raigeki:
When in a project, I can only compile the main.cpp file. I added a new file to write a new program but the compiler it won't compile it.
Do I have to make a new project for every new program I write? If that is the case, what is the point of adding .cpp files to an existing project?
I'm sorta new, so help me out here ;D
stahta01:
Is it a true multi file project?
If yes, at most one of the source files will have a main function in it.
If they both have main functions; then each of the files must be in a separate CB target.
Tim S.
Navigation
[0] Message Index
Go to full version