Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding compiler to code::blocks

enter image description hereFrom here I've downloaded newest release of GCC, namely 4.6.
How can I add this compiler to my code::blocks?

like image 798
There is nothing we can do Avatar asked Apr 09 '11 09:04

There is nothing we can do


People also ask

Does Code::Blocks need a compiler?

Any IDE is fine, but you need to have a C compiler and set-up the IDE to find it. separate, download the appropriate package (e.g. codeblocks-20.03-setup.exe). We will use the GNU GCC Compiler.

How do I fix Code::Blocks compiler not found?

If your compiler was not auto-detected, go to "Settings->Compiler and Debugger->Global Compiler settings->Toolchain executables", select the compiler you installed and press "Auto-detect". If you get a message saying that the compiler was auto-detected, congratulations!

How do you open a compiler window in Code::Blocks?

go to view -> perspective -> and enable code::Blocks default, you can see your projects left side and down the build logs and messages etc.


1 Answers

Go to the Settings menu and hit Compiler and Debugger:

enter image description here

Go to Copy, and name the new compiler GCC 4.6 or whatever you'd like. Go to the Toolchain Executables tab, and fill in the directory name. I think all of the .exe's should be named the same thing. Make sure and copy paste your linker settings from one to the other. Now that compiler title will appear in all of the dialog boxes. I'm not entirely sure how to move the new one up the list so it's the default.

like image 115
jonsca Avatar answered Sep 16 '22 19:09

jonsca