User forums > Using Code::Blocks
Compile single files
(1/1)
Ashu2912:
Hey guyz, Im new to using Code::Blocks and do simple programming in c++. I am facing a problem wherein i am unable to compile individual files in a project. I had to create a project in order to use the debugging feature, and read somewhere that i can only debug the files that belong to a project. Please help. thanks in advance!!! :)
oBFusCATed:
Why don't you compile the whole project?
I doubt it is that slow.
Ashu2912:
The thing is that my project contains files which need to be compiled separately, each has it's own main()!!
oBFusCATed:
Then why don't you make different projects or different targets.
You're abusing the project system with your setup.
p.s. another option is to disable the building/linking of the other files (right click on the file -> properties -> build)
Navigation
[0] Message Index
Go to full version