Can't find C::B GNU Fortran compiler

40 views
Skip to first unread message

Don Moore

unread,
Oct 3, 2021, 8:57:16 PM10/3/21
to CBFortran
I am new to Code::Blocks.  I did a full install of codeblocks-20.03mingw-setup.exe on my Windows 10 computer, and selected the GNU Fortran Compiler.  I have a C:\Program Files\CodeBlocks\MinGW directory from the install, but in toolchain executables, when I do autodetect after filling in this directory name it tells me the compiler executable can not be found in the directory.  So I can write a Fortran program, but build does nothing. 

I thought that the installer was supposed to include the Fortran compiler, from the page I downloaded it from.  Can anyone please help me with this very basic question?  I tried for 45 minutes to figure out what I did wrong, or finding a compiler to add to Code::Blocks in the directory shown above, with no luck.  Thank you in advance.

Don Moore

unread,
Oct 4, 2021, 9:25:16 AM10/4/21
to CBFortran
The solution is that the boxes in the toolchain window, the boxes labelled C and C++ need to be changed to "gfortran.exe".  For some reason they default to "mingw32-gfortran.exe".
Reply all
Reply to author
Forward
0 new messages