Author Topic: I can't use the compiler for the C++  (Read 239 times)

Offline doltawan

  • Single posting newcomer
  • *
  • Posts: 2
I can't use the compiler for the C++
« on: August 11, 2017, 09:40:27 am »
I downloaded CB with the mingw on my Windows 7 Professional 32-bit PC, but I keep getting this error message.


"Tawan - Debug": The compiler's setup (GNU GCC Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?! (Do you have a compiler installed?)
Goto "Settings->Compiler...->Global compiler settings->GNU GCC Compiler->Toolchain executables" and fix the compiler's setup.
Skipping...
Nothing to be done (all items are up-to-date).

Offline doltawan

  • Single posting newcomer
  • *
  • Posts: 2
Re: I can't use the compiler for the C++
« Reply #1 on: August 11, 2017, 09:41:31 am »
One more picture

Online Commaster

  • Multiple posting newcomer
  • *
  • Posts: 69
Re: I can't use the compiler for the C++
« Reply #2 on: August 11, 2017, 10:16:09 am »
Please read the message again, UNDERSTAND IT and do what it tells you to do.

Offline RyanR

  • Single posting newcomer
  • *
  • Posts: 1
  • I'm just here to learn.
Re: I can't use the compiler for the C++
« Reply #3 on: August 19, 2017, 04:58:33 pm »
The "Error" message you are getting is telling you that the  %path% environmental variable does not include the the location of the gcc.exe Executable file.
Im not going to do a complete explanation of how to modify the %path% variable. it depends on what OS you are running. But try a google search of "%path% There are several tutorials that are really easy to follow.

Online stahta01

  • Lives here!
  • ****
  • Posts: 5870
    • My Best Post
Re: I can't use the compiler for the C++
« Reply #4 on: August 19, 2017, 08:20:56 pm »
The "Error" message you are getting is telling you that the  %path% environmental variable does not include the the location of the gcc.exe Executable file.
Im not going to do a complete explanation of how to modify the %path% variable. it depends on what OS you are running. But try a google search of "%path% There are several tutorials that are really easy to follow.

The above is NOT correct.
http://wiki.codeblocks.org/index.php/Installing_a_supported_compiler#Compiler-neutral_setup_steps

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7191
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: I can't use the compiler for the C++
« Reply #5 on: Yesterday at 10:11:43 am »
As Tim stated, please do not play with your path-variable unless you know what you doand need MinGW on the commandline. You might mess up your system.
Code::Blocks does that for you, without effecting the whole system.
Just follow the steps in the link Tim gave you and it should work.