User forums > Help

"filename - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]....."

<< < (3/4) > >>

stahta01:
Turn ON Full Compiler Logging and post full Rebuild Log; Note: This means do a Rebuild and Post "Build Log" NOT "build Messages".

http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S.

oBFusCATed:
Things to try:
1. Open a cmd.exe
2. cd to the folder with the compiler
3. execute g++ --version
4. execute gdb --version

If that works check if the path is the same in the C::B's settings.

It is obvious that C::B can't find you compiler, nor your debugger (gdb.exe)

eb:
Ein minuten bitte!!!

I have been opening this project via [File][Recent projects] and I just noticed that even though I did a [Save project as...] to a new location it was still looking at/for main.cpp in it's original location.  So instead I double-clicked (opened) main.cpp in it's new (current) location and BADDA-BING it works: no errors and I get the window.

If you got an explanation about what you think I did wrong I'd love to hear it.
If not then thanks for baby sitting me through this.

oBFusCATed:
Can you reproduce it again?

eb:
Yes. 
I closed C::B,
I started C::B,
I go [File][Recent Project]
I select what is now the only project in the list.
I click on Sources under Projects in the Management window.
I double click main.cpp and get the main.cpp with the code to the right.
Then I click on the 'Build and run' icon and it throws the error message - "second - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done.
I right click on main.cpp in the Management window to check Properties and main.cpp is in the proper (new) location.  The same for the project under [File][Recent Project].  And it's still the same if I start C::B by double clicking project's icon in Windows Explorer.

HOWEVER if I start C::B by double clicking the main.cpp icon in Windows Explorer and click on the "Build and run" icon it works.

Of course now there is a main.exe file that opens a DOS window and says "Hello World" (among other things) but closes before I hit a keyboard button.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version