Author Topic: How to point Code:Blocks to your mingw gcc c compiler  (Read 3304 times)

Offline CCBDevExperimenter

  • Single posting newcomer
  • *
  • Posts: 2
How to point Code:Blocks to your mingw gcc c compiler
« 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline CCBDevExperimenter

  • Single posting newcomer
  • *
  • Posts: 2
Re: How to point Code:Blocks to your mingw gcc c compiler
« Reply #2 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.


Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: How to point Code:Blocks to your mingw gcc c compiler
« Reply #3 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.

RuthBarra

  • Guest
Re: How to point Code:Blocks to your mingw gcc c compiler
« Reply #4 on: July 19, 2023, 03:36:02 pm »
Thank you for the link, you made my day.