User forums > Help

Problem with Fortran codes

(1/2) > >>

Farzin:
hi,
I've used code::blocks 13.12 for months, compiling c++ codes and it worked well.
now i wanted to run a Fortran code but there is a problem:

--- Quote ---mingw32-g++.exe: error: CreateProcess: No such file or directory

--- End quote ---

I've set GNU Fortran Compiler as default, and correct path is selected for MinGW.
After searching about this, noticed "egcs" problem which some said. i haven't such program. but i found MATLAB has a "gcc" folder...

Can you help me on this?

stahta01:
Does your MinGW GCC compiler have the files to support FORTRAN compiling?

Edit: Code::Blocks is NOT a Compiler!!

Tim S.

Farzin:
thank you Tim,

Yes, it is actually the MinGW which being installed with CodeBlocks 13.12 .
I tried to use another gFortran compiler and not that one in CodeBlocks directory, by selecting it's bin files in compiler settings, this time there were errors with Fortran functions.

Farzin:
Still couldn't figure it out.

gd_on:
Hi,
when using fortran, you shoud not have a reference to mingw32-g++.
Here is the correct compiler setting.
in toolchain executables you should have :
C compiler : mingw32-gfortran.exe
C++ compiler : mingw32-gfortran.exe
linker : mingw32-gfortran.exe
linker for static : ar.exe
debugger : gdb.exe
resource : windres.exe
make program : mingw32.make.exe

and of course you must select gfortran compiler for your project.

Also, have a look in the wiki : http://wiki.codeblocks.org/index.php?title=Installing_Fortran_Compiler

gd_on

Navigation

[0] Message Index

[#] Next page

Go to full version