Author Topic: C++ Beginner - Need Help on GNU GCC Compiler  (Read 8281 times)

Offline OldDude

  • Single posting newcomer
  • *
  • Posts: 5
C++ Beginner - Need Help on GNU GCC Compiler
« 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: C++ Beginner - Need Help on GNU GCC Compiler
« Reply #1 on: June 13, 2010, 08:05:22 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline OldDude

  • Single posting newcomer
  • *
  • Posts: 5
Re: C++ Beginner - Need Help on GNU GCC Compiler
« Reply #2 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..."

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: C++ Beginner - Need Help on GNU GCC Compiler
« Reply #3 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).

Offline OldDude

  • Single posting newcomer
  • *
  • Posts: 5
Re: C++ Beginner - Need Help on GNU GCC Compiler
« Reply #4 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


Offline kencamargo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: C++ Beginner - Need Help on GNU GCC Compiler
« Reply #5 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

Offline OldDude

  • Single posting newcomer
  • *
  • Posts: 5
Re: C++ Beginner - Need Help on GNU GCC Compiler
« Reply #6 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