Code::Blocks Forums

User forums => Help => Topic started by: CCBDevExperimenter on February 01, 2023, 01:14:59 am

Title: How to point Code:Blocks to your mingw gcc c compiler
Post by: CCBDevExperimenter on February 01, 2023, 01:14:59 am
Hi,

Sorry, I can't figure out how to point to an existing gcc.exe.  It doesn't seem to be bundled, and the installation (I think) didn't ask me for any paths.

In the Compiler Settings window, there's no tabs or subwindows that let you specify a path for the compiler.  And the Debug/Continue button is disabled.

The specific command line settings I want to use are

gcc -Wall -O2 -g thismodule.c thismodule.c -o thistarget

, but I'm totally clueless about how to configure Code:Blocks.
Title: Re: How to point Code:Blocks to your mingw gcc c compiler
Post by: stahta01 on February 01, 2023, 05:52:52 am
https://wiki.codeblocks.org/index.php/MinGW_installation (https://wiki.codeblocks.org/index.php/MinGW_installation)
Title: Re: How to point Code:Blocks to your mingw gcc c compiler
Post by: CCBDevExperimenter on February 01, 2023, 01:55:49 pm
Thanks stahta01,

So we do a second Mingw install, in order to make it compatible with Code:Blocks?

Ok, I tried to download both the full tdm-gcc 64 bit, and the minimal version.  But they both  trigger a webroot trojan warning.

I'll take my time with this, thanks for pointing me in the right direction.  Please close the ticket.

Title: Re: How to point Code:Blocks to your mingw gcc c compiler
Post by: Miguel Gimenez on February 01, 2023, 03:01:59 pm
You do not need to install a second compiler, just skip that step and continue with compiler configuration (https://wiki.codeblocks.org/index.php/MinGW_installation#Code::Blocks_Configuration).
Title: Re: How to point Code:Blocks to your mingw gcc c compiler
Post by: RuthBarra on July 19, 2023, 03:36:02 pm
Thank you for the link, you made my day.