User forums > Using Code::Blocks
C::B compiles in K&R C and not ANSI C...?
LiK:
erm... no i didn't :shock:
i tried with project and the file compiles jsut fine! thank you!
But again.. why it did not compile as a single file? More specifically why it does compile but uses the wrong compiler?
Has to do with the project thing?
ie In ms visual C++ IDE u cannot (i think:P) compile a single file, *but* the compile etc buttons are non-clickable..
MortenMacFly:
--- Quote from: LiK on May 22, 2009, 06:13:51 pm ---why it does compile but uses the wrong compiler?
--- End quote ---
This is by design. Supporting single-file compilation has limitations (for several good reasons). Actually I would vote to disable it completely to avoid such misunderstandings.
LiK:
hm.. ok now i understand :)
btw.. better disable it completely or warn that it only compiles C++ single files!
Ceniza:
--- Quote from: BloodyCake ---Actually I would vote to disable it completely to avoid such misunderstandings.
--- End quote ---
I would vote to improve it (that's what I use the most of C::B) :D
stahta01:
--- Quote from: Ceniza on May 31, 2009, 03:46:23 pm ---
--- Quote from: BloodyCake ---Actually I would vote to disable it completely to avoid such misunderstandings.
--- End quote ---
I would vote to improve it (that's what I use the most of C::B) :D
--- End quote ---
I would vote to have an option to enable it; that by default is disabled.
Tim S
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version