Author Topic: Adding additional compiler  (Read 2049 times)

Offline JoeH

  • Multiple posting newcomer
  • *
  • Posts: 12
Adding additional compiler
« on: April 02, 2026, 05:06:03 am »
I have an old computer, running Windows XP, that I want to do some FORTRAN programming on.  I have installed CB17.12 and it works fine for C and C++.  The gfortran compiler is not available.  The only compiler .exe files that appear in the MinGW/bin directory are for C and C++.  I reinstalled CodeBlocks to be sure I selected the Fortran compiler for installation.  I had requested everything to be installed.  The options_gfortran.xml file does exist in the share/CodeBlocks/compilers directory.

Is there a way to add the gfortran compiler?

Thanks

Joe

Offline PolyTrackk

  • Single posting newcomer
  • *
  • Posts: 1
Re: Adding additional compiler
« Reply #1 on: Yesterday at 11:31:10 am »
That sounds incredibly frustrating, especially since you already tried a full reinstall to get everything working. I ran into a similar snag with older MinGW builds on XP where the Fortran binaries were stripped out of the default "everything" bundle to save space. PolyTrack You'll likely need to download a standalone version of gfortran-4.4.0 (or similar legacy binaries compatible with XP) and manually point Code::Blocks to that folder under Settings > Compiler > Toolchain executables.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1858
Re: Adding additional compiler
« Reply #2 on: Yesterday at 11:35:17 am »
Spam reported to moderator.