Author Topic: No compiler  (Read 1899 times)

Offline Thr3g0

  • Single posting newcomer
  • *
  • Posts: 2
No compiler
« on: January 27, 2025, 05:45:46 pm »
Hey guys, brand new to coding and Codeblocks. For some reason no matter which version of Codeblocks I install it keeps saying I don't have a compiler, even though I've specifically selected the versions that state that have a compiler. Everytime I execute my code it does literally nothing at all. Any help in figuring this out would be much appreciated.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1673
Re: No compiler
« Reply #1 on: January 27, 2025, 06:02:28 pm »
First, locate where the compiler is installed. If it came with C::B, it should be in the C::B's installation folder, if it is not there you can search for gcc.exe in your system disk.

Once you find it, goto "Settings -> Compiler settings", select "GNU GCC Compiler" and the tab labeled "Toolchain executables"; input the path to gcc.exe in the "Compiler's installation directory" control (without the last "\bin" part, for example C:\MinGW) and click Ok.

Offline Thr3g0

  • Single posting newcomer
  • *
  • Posts: 2
Re: No compiler
« Reply #2 on: January 27, 2025, 06:07:50 pm »
Got it, that worked perfectly! Thank you so much!