Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: indigo0086 on August 26, 2007, 09:29:32 pm

Title: How do I deactivate a project without closing it?
Post by: indigo0086 on August 26, 2007, 09:29:32 pm
I am trying to make an executable from a file, but one project always remains active.  So I can't just compile this one cpp file I have.  Is there a way to leave a project in the project window, but deactivate it so I can compile a single non-project source file?
Title: Re: How do I deactivate a project without closing it?
Post by: dje on August 26, 2007, 09:51:24 pm
Hi !

I don't know how to do this.
Just a question: how do you give the compiler its information (include paths, defines) without any project ?

Dje
Title: Re: How do I deactivate a project without closing it?
Post by: indigo0086 on August 26, 2007, 09:52:50 pm
Well, the compiler options are in the preferences, so it looks those up using that. 
Title: Re: How do I deactivate a project without closing it?
Post by: dje on August 26, 2007, 10:07:37 pm
And the output path/name ?
Title: Re: How do I deactivate a project without closing it?
Post by: indigo0086 on August 26, 2007, 10:14:42 pm
It outputs to the path the source file is under with the source filename as the exe.  It all works, try it for yourself, that's not the problem.  The only thing is I wan't to be able to compile and run that single file without having to close a project that is open.
Title: Re: How do I deactivate a project without closing it?
Post by: mandrav on August 26, 2007, 11:48:30 pm
It outputs to the path the source file is under with the source filename as the exe.  It all works, try it for yourself, that's not the problem.  The only thing is I wan't to be able to compile and run that single file without having to close a project that is open.

Just start a new C::B instance.