User forums > Using Code::Blocks
Default compilers
shaz:
Hi,
I am new to Linux programming and I have recently downloaded Code Blocks. I will be using Code Blocks for Fortran and C++ programming. I want to know a list of default compilers which are available in Code Blocks? I am specifically interested in Fortran compilers.
I am trying to use G95 but everytime I build, it says, "Test Fortran - Debug": The compiler's setup is invalid so Code::Blocks cannot find/run the compiler. Probably the toolchain path within the compiler options is not setup correctly?"
I am using Ubuntu 10.04.
Thanks for the help.
Jenna:
Code::Blocks is an IDE and does not ship with any compiler on linux.
You have to install a supported compiler yourself and check/fix the setup in "Setup -> Compiler and debugger -> [your compiler] -> Toolchain executables".
C::B is mainly focused on C/C++ development so you have to tweak nore stuf to be able to use a fortran compiler.
There is a thread (or multiple threads) about it in the forum, please search for it.
There is also a wiki-article about installing fortran compiler: http://wiki.codeblocks.org/index.php?title=Installing_Fortran_Compiler
shaz:
Thanks a bunch.....cheers!!
shaz:
Okay, so I got myself a GNU Fortran Compiler. I installed it and put the installed path in the toolchain executables. I read (here, http://forums.codeblocks.org/index.php/topic,13090.0.html) that C :: D would automatically locate the requires files and populate the list. But I am still getting, these errors:
||error: unrecognized command line option ‘-warn’|
||gfortran: error: all : No such file or directory|
||gfortran: error: full : No such file or directory|
||=== Build finished: 3 errors, 0 warnings (0 minutes, 0 seconds) ===|
Any help would be appreciated.
shaz:
I have gotten a little far,
But I cannot locate the Linker for Static libs, Debugger, Recourse Compiler, Make Program. I am using gfortran 4.7.
The compiler is given the following error on build,
libmpc.so.2 No such file or directory
Navigation
[0] Message Index
[#] Next page
Go to full version