News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compile single files

Started by Ashu2912, May 10, 2013, 05:27:04 AM

Previous topic - Next topic

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

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)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]