Code::Blocks Forums
User forums => Help => Topic started by: Farzin on September 26, 2014, 04:14:45 pm
-
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:
mingw32-g++.exe: error: CreateProcess: No such file or directory
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?
-
Does your MinGW GCC compiler have the files to support FORTRAN compiling?
Edit: Code::Blocks is NOT a Compiler!!
Tim S.
-
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.
-
Still couldn't figure it out.
-
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
-
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
Thank you. you're right... I'd chosen wrong bin file for compiler.