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

file in subject

(1/3) > >>

thanhbuu:
can C::B add two file *.cpp but compile indepently because CB often ask if there were two "int main()" (even in separate two files) ?

stahta01:

--- Quote from: thanhbuu on May 18, 2012, 03:38:54 pm ---can C::B add two file *.cpp but compile indepently because CB often ask if there were two "int main()" (even in separate two files) ?

--- End quote ---

Yes, the CB Project has more than one main in it. But, each target can have at most a single main in it.

Tim S.

thanhbuu:
how can I do it? Please give me some detail if I want to build/debug a file? Thanks!

stahta01:
Try looking under
"Project" -> "Properties"
Tab: "Build Targets"

I do not have the time to write directions.

Tim S.

thanhbuu:
Sorry but as I can see the "Build Target" is just Debug or Release. It doesn't give me a chance to select which file I need to debug step by step :) So how can I?

Navigation

[0] Message Index

[#] Next page

Go to full version