Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: pronoob? on December 19, 2012, 04:04:27 pm

Title: empty file
Post by: pronoob? on December 19, 2012, 04:04:27 pm
while im working on a project everythings fine. in order to test a code piece i opened a new empty file and put the code then "build and run" but the code in empty file is not compiled. instead the one in main project is compiled. I'm doing C programming. Why is it not compiled?
any other way to test a code pice away from main proj?
Thanks in advance.
;D
Title: Re: empty file
Post by: MortenMacFly on December 19, 2012, 06:04:12 pm
Let me ask you a similar question: I have two files the one works, the other not. Why?

See how little information you provided? What answer do you expect?
Title: Re: empty file
Post by: Alpha on December 19, 2012, 11:08:43 pm
As a guess, you have a project open, and the file that is not compiling is not part of the active target (and maybe not even part of the project).
But this is just a guess; you have provided very little information.
Title: Re: empty file
Post by: dmoore on December 19, 2012, 11:55:16 pm
Build -> Compile current file