News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

C++ Beginner - Need Help on GNU GCC Compiler

Started by OldDude, June 13, 2010, 07:50:27 PM

Previous topic - Next topic

OldDude

I am new beginer to C++ and following the book but I keep getting this error message and I can't proceed:

"aa - 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 am using:
OS:         windows XP
Compiler:  GNU GCC Compiler with MinGW
CB ver.     ver.  10.05

CB installed in   c:\Program Files\CodeBlocks
ToolChain         c:\minGW

MortenMacFly

Quote from: OldDude on June 13, 2010, 07:50:27 PM
Probably the toolchain path within the compiler options is not setup correctly?!
Did you verify this?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

OldDude

How to verify?

1) my MinGW folder is in C directory.
2) at toolchain ... the compiler installation directory is in c:\MinGW     [i did not link the list below to the bin....should I?]

C compiler          codeblock.exe
C++ compiler      mingw32-c++.exe                             
Linker  Dynamic   mingw32-c++.exe
Linker Static       ar.exe
Debugger           gdb.exe
Resource            windres.exe
Make Program     mingw32-make.exe


I tried auto detect... but the error show   " ...cannot detect the GNU GCC compiler..."

Jenna

codeblocks is not a compilerand if it is really listed as C-compiler you messed up your configuration.
Use mingw32-gcc.exe instead (if the mingw32-???.exe files exist, otherwise use ???.exe instead).

OldDude

How did/could it mess up like that?...
When I download the Code::Blocks from the CD 8.xx
I have already encountered the problem.
I tot removal and replaced with the ver 10.05 could help....
but apparently it still
have the problem

I will try again


kencamargo

Quote from: OldDude on June 14, 2010, 02:17:25 AM
How did/could it mess up like that?...

Without dicussing whose mess it is originally :), if that was present in the previous configuration, it will probably stay that way when you do a reinstall, you have to manually delete the configuration files - Jen posted instructions for that earlier.

HTH,
Ken

OldDude

Yep...with Jens instructions ... it is resolved.
I have managed to write 2 simple assignment programs.
Happy as a lark.

Thanks