User forums > Help
Problems with fortran compiler
Rfernandez:
I am tryiinf to use the code blocks fortran compiler, but I can´t make it work; apparently code blocks doesn´t find the compiler. I enclose a simple program and the messages obtained in the build process. I have windows 7 professional. I modify the PATH to
C:\Program File (x86)\gfortran\bin;C:\cygwin\bin;C:\Program Files (x86)\CodeBlocks\MinGW\bin
I was using NetBeans but I want to try Code Blocks now.
Thanks for any suggestion!!!
Ricardo
stahta01:
http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Where is the FORTRAN compiler located?
Where did you tell Code::Blocks to look for it?
Post a Full re-build log; this does NOT mean a message log!!
Tim S.
Rfernandez:
I enclose the build log; the compiler is set within the bin directory of codeblocks:
Archivos de Programa(x86)/CodeBlocks/MinGW/bin
and the compiler settings are shown in the file attached.
MortenMacFly:
--- Quote from: Rfernandez on January 29, 2016, 11:54:44 pm ---and the compiler settings are shown in the file attached.
--- End quote ---
Well you are using the GNU GCC compiler and not the GNU G95 compiler as the build log clearly shows. Please adjust your project's build settings at project AND target level to use the right compiler.
Next time please read more carefully - this is really obvious.
Rfernandez:
Morten,
I know it is so obvious, but the compiler settings are set as G95 Fortran; despite this settigs, the building log presents GNU GCC compiler. I don't know what is wrong.
Navigation
[0] Message Index
[#] Next page
Go to full version