User forums > Using Code::Blocks

Default compilers

<< < (3/3)

shaz:
Actually, I figured I had the wrong compiler selected. But even after fixing this, I am getting this error:

-------------- Build: Debug in TestingF ---------------

gfortran -Jobj/Debug/ -warn all  -debug full  -Wall    -c /home/shaz/Downloads/CodeBlocks/TestingF/main.f90 -o obj/Debug/main.o
gfortran: error: unrecognized command line option ‘-warn’
gfortran: error: all: No such file or directory
gfortran: error: full: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
3 errors, 0 warnings (0 minutes, 0 seconds)
 
Yeah, it is 4.7 but it was the only one I could find.

Alpha:

--- Quote from: shaz on September 27, 2011, 12:17:52 am ---Yeah, it is 4.7 but it was the only one I could find.

--- End quote ---
This is shot in the dark as I only rarely work on Linux (and never with Fortran), but did you check your system's package manager for gfortran, or availability of GFortranBinaries?

I also saw Code::Blocks IDE for Fortran (Fortran Project plugin) that might interest you (it probably has nothing to do with your problem).

Edit: The errors in your build log imply that some of the switches you are sending to the compiler are invalid.  You could try removing all switches (including any custom ones), and see if it compiles then.

shaz:
Yeah, I  thought about that too. Is it really true that Code Blocks isn't made for Fortran?

oBFusCATed:
100%, it is a C/C++ IDE, but there are many users which use it to compile fortran code. I've used it to compile D code, so it is doable, I think.

Check the options in the project for any warnings set. Also check the manual of your compiler for the correct cmd arguments.

"-warn all" seems to be used to enable all warnings on an older compiler.

MortenMacFly:

--- Quote from: shaz on September 27, 2011, 09:27:49 am ---Yeah, I  thought about that too. Is it really true that Code Blocks isn't made for Fortran?

--- End quote ---
Not really, but you can achieve great feature options, including CC, if you are using a 3rd party plugin which can be obtained from here:
http://darmar.vgtu.lt
Alternatively if you develop in Fortran, only - use the forked C::B IDE from this page.

Navigation

[0] Message Index

[*] Previous page

Go to full version