News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Won't compile! Help!!!

Started by Zeus, August 08, 2005, 03:44:35 AM

Previous topic - Next topic

Zeus

Omg when I go to compile....it only works when I have a project open. If I go to compile a program under "Opened Files" all the compile options are greyed out except; "Compile Current File" "Errors --> Clear All Errors" and "Compile Options". When I click "Compile current file" , it gives me an error saying

Quotecl.exe /nologo   /c "C:\Program Files\CodeBlocks\prog.cpp" /Fo"C:\Program Files\CodeBlocks\prog.obj"
Command execution failed...

But when I have a project open, I can compile it just fine (except when there's bugs...and if anyone can tell me where the debugger is for Microsoft Visual C++ Toolkit 2003 is that would be much appreciated). It's very weird. So again

Here's the problem in a nutshell for anyone who didn't feel like reading what I posted above..

The program won't compile unless I have it inside of an opened project.

Please help, and thank you all

grv575

command execution failed usually means it can't find the executable.  make sure cl.exe is in the PATH or the directories CB searches (check compile->compiler options->programs->additional paths).

Zeus

thanks for the response

yes cl.exe is the path for the C and C++ compiler option boxes...

here's a pic


grv575

OK, you're right I get the same behavior.  The compiler paths aren't used if the source file doesn't belong to a project.  I'd submit a bug if one hasn't been submitted already.

rickg22

Quote from: grv575 on August 08, 2005, 04:34:09 AM
OK, you're right I get the same behavior.  The compiler paths aren't used if the source file doesn't belong to a project.  I'd submit a bug if one hasn't been submitted already.


Please do, the "compile single file" option was implemented in the last minute, so it needs a lot of work.

tiwag

we should remove this "Compile current file" possibility anyway

rickg22

Oh no... it's the most asked-for feature! We should fix it instead.

Zeus

k i reported the bug with a priority of 8/9

grv575

Oh, sorry should have post that I already reported it yesterday.  Btw, it only happens when using VC++ Toolkit 2003 as the compiler.  It works correctly when GCC is being used (haven't tested other compilers).