Code::Blocks Forums

User forums => Help => Topic started by: OldDude on June 13, 2010, 07:50:27 pm

Title: C++ Beginner - Need Help on GNU GCC Compiler
Post by: OldDude on June 13, 2010, 07:50:27 pm
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
Title: Re: C++ Beginner - Need Help on GNU GCC Compiler
Post by: MortenMacFly on June 13, 2010, 08:05:22 pm
Probably the toolchain path within the compiler options is not setup correctly?!
Did you verify this?
Title: Re: C++ Beginner - Need Help on GNU GCC Compiler
Post by: OldDude on June 13, 2010, 08:36:41 pm
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..."
Title: Re: C++ Beginner - Need Help on GNU GCC Compiler
Post by: Jenna on June 13, 2010, 08:45:52 pm
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).
Title: Re: C++ Beginner - Need Help on GNU GCC Compiler
Post by: OldDude on June 14, 2010, 02:17:25 am
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

Title: Re: C++ Beginner - Need Help on GNU GCC Compiler
Post by: kencamargo on June 14, 2010, 07:42:53 pm
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
Title: Re: C++ Beginner - Need Help on GNU GCC Compiler
Post by: OldDude on June 15, 2010, 01:59:33 am
Yep...with Jens instructions ... it is resolved.
I have managed to write 2 simple assignment programs.
Happy as a lark.

Thanks