Author Topic: Can't find compiler  (Read 2096 times)

Offline peter_hurley@outlook.com

  • Single posting newcomer
  • *
  • Posts: 5
Can't find compiler
« on: July 18, 2023, 03:26:06 pm »
Hi

When I open Code::Blocks I get a message Can't find compiler.

Can anyone help ?.

Peter

Offline maxcy

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: Can't find compiler
« Reply #1 on: July 19, 2023, 06:32:51 am »
Go to settings/compiler and look this page. At the top you will see GNU GCC Compiler. That is supposed to be the default compiler in the CB bin directory.  When installed this should have found the compiler in the CB bin directory. You can look in that directory and find g++.exe which the compiler uses. You can go into this folder from a cmd prompt window and type G++ --version and you will see a reply showing the version # and that g++ is working. Go back to the settings/compiler menu and 'reset default' so the IDE will find the compiler. I'm not sure about this, but you may have to look at the environment path variable and make sure it is in the path so the compiler can be found!  This is especially important if you want to install a newer version compiler like I did. Make sure the compiler path to the new bin folder is in the front of the path!  There are tutorials online on how to do this!
maxcy / wt1v