User forums > Using Code::Blocks

How do I deactivate a project without closing it?

(1/2) > >>

indigo0086:
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?

dje:
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

indigo0086:
Well, the compiler options are in the preferences, so it looks those up using that. 

dje:
And the output path/name ?

indigo0086:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version