Following this "how to do"
http://wiki.codeblocks.org/index.php?title=Installing_Fortran_Compiler:
+To attach the GNU Fortran 77 Compiler (G77) the following steps are required:
* Make a copy of the GNU GCC compiler as follows:
.
.
.
Done * Setup the compiler as follows:
1.) The path etc. should be as of the GCC Compiler. If this has been setup correctly, no changes are required. Otherwise refer to the setup of the GNU GCC compiler.
2.) Change under the "Programs" tab: "C compiler" = "g77.exe", "Linker for dynamic libs": "g77.exe"
When I've changed the path to c:\MinGW32\compiler I got that and I didn't change it--> "C compiler" = "mingw32-gcc.exe", "Linker for dynamic libs": "mingw32-gcc.exe" (actually is also in the c++ compiler option.
3.) If you mix Fortran with C programs then add "-lg2c" in the "Linker" tab (and "-lstdc++" if you have mixed Fortran/C and C++ projects) under "Other linker options".
--> Not mixing, then I skip this step
* Important: Make sure the path environment is setup to really point a path that contains the Fortran compiler suite. C::B with MinGW does NOT include the Fortran compiler. You may download the compiler under MinGW webpage. "gcc-g77-3.4.2-20040916-1.tar.gz" is the name of the package I expect you want.
--> I don't know exactly what should I do with this.+Adding new Fortran file type
Done+Setting up Fortran projects
To work with Fortran files, do the following: Add a (new) file to the project, saved as "your_fortran_file.f". Verify it's recognised as "Fortran Sources" file type. If not verify you have done the steps above correctly. To enable compiling the project which includes Fortran files follow these steps:
* Right click on the project, select "Build options" and make sure you have selected the "GNU G77 compiler" (see steps above).
* Right click on the "your_fortran_file.f" file and select "Properties".
1.) Enable "Compile file" and "Link file".
2.) Under the "Advanced" tab enter "CC" as compiler variable
It says can't find compiler executable in my configurated pathI really need some help. Thanks for the answers.