News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

finding compiler

Started by DBK4227, January 31, 2019, 07:58:15 PM

Previous topic - Next topic

DBK4227

I installed Code::blocks using default setup;  When I try to start it for C, I get an error message that it can't find a path to GNU GCC compiler.  Any suggestions?

oBFusCATed

OS? Which package have you installed? Have you installed a compiler?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

DBK4227

So sorry, stupid of me not to include:  Code::Blocks 17.12, running on Windows 10

DBK4227

I assumed Code::Blocks would install a compiler as part of the IDE

oBFusCATed

It depends. There are installers which have a compiler and installers which don't have compiler. Which one have you used?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

DBK4227

I used codeblocks 17.12 setup.  does it include a compiler?  If not, can you recommend a version that does?  Thanks for your help!

gd_on

everything is written in this page : http://www.codeblocks.org/downloads/26 from where you have probably downloaded your version.
take a little time to read everything.
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

DBK4227

AAARRRG! This time I installed "codeblocks-17.12mingw-setup" or C in Win 10, and I still get an error message it can't find the compiler :(  Any suggestions?

oBFusCATed

Goto the compiler settings select the GCC compiler and find the auto-detect button and try to see if it helps. If it doesn't help search the wiki for instructions how to setup a compiler.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

DBK4227

Sorry for being dense, but I've selected the Gnu  GCC compiler and don't see an "auto detect" button:(

oBFusCATed

It is on the toolchain executables tab. If you don't see it press the right arrow or resize the dialog.

If you still cannot find it - search the wiki...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

rcttsoul

first uninstall Codeblocks mingw bla bla, the Codeblocks MinGW bundle download is messed up.
Now install MinGW separately and first...... https://osdn.net/projects/mingw/releases/
Now download and install Codeblocks ONLY ..... http://sourceforge.net/projects/codeblocks/files/Binaries/17.12/Windows/codeblocks-17.12-setup.exe

And here are some videos that will actually show you the secrets on how to........ set everything up shhhhh
setup of MinGW https://www.youtube.com/watch?v=sXW2VLrQ3Bs&t=249s
setup of CodeBlocks https://www.youtube.com/watch?v=c8iq3yg6RDM&t=8s
Discord = Pryor#2941