User forums > Using Code::Blocks

Compiling fortran77 project using codeblocks

<< < (2/2)

krispy:
As suggested by Miguel and Stahta01 I changed the directory as well as reset to default and the files got regenerated and tried rebuilding the files again, but the errors were the same. So thought I'd try with the other system which had 'codeblocks-17.12mingw-setup.exe' file and tried compiling the same file with the .for file in a different directory and this is what popped up in build log

Project/Target: "TYPE861 - Win32 Release":
  The compiler's setup (GNU Fortran Compiler) is invalid, so Code::Blocks cannot find/run the compiler.
  Probably the toolchain path within the compiler options is not setup correctly?!
  Do you have a compiler installed?
Goto "Settings->Compiler...->Global compiler settings->GNU Fortran Compiler->Toolchain executables" and fix the compiler's setup.

Tried to run compiler executable 'C:\MinGW/bin/mingw32-gfortran.exe', but failed!

Skipping...
Nothing to be done (all items are up-to-date).


Since it was too messed up last time, I thought to proceed with your guidance on this one.

oBFusCATed:
You don't have a fortran compiler installed. I guess the mingw we ship contains only c/c++ compilers.

krispy:
Okay, could you direct me where could I get the compiler to compile fortran77 code?

gd_on:
Have a look in the user manual (http://www.codeblocks.org/user-manual), chapter 5.2.
In your first post you have used g++, but you should use gfortran or mingw32-gfortran.exe to compile fortran (even if with g++ it can work).

Navigation

[0] Message Index

[*] Previous page

Go to full version