Author Topic: Code::Blocks Linker Setting -lgfortran  (Read 3983 times)

Offline tomirvine

  • Single posting newcomer
  • *
  • Posts: 5
Code::Blocks Linker Setting -lgfortran
« on: November 02, 2011, 10:17:49 pm »
I have Ubuntu 11.10, gfortran 4.6.1, Code::Blocks 10.05, GNU GCC Compiler.

I have also installed blas, cblas, and lapack.

I am trying to compile a c++ program that uses lapack.

I have added -lgfortran to "Other linker options."

I have also added several statements to Link Libraries such as:

/usr/lib/gcc/x86_64-linux-gnu/4.6.1/libgfortran.a

I get a series of errors when I try to build the program such as:

ilaenv.f   undefined reference to '_gfortran_compare_string'

This suggests that somehow gfortran is not working.

Please help.

Thank you,
Tom


Offline tomirvine

  • Single posting newcomer
  • *
  • Posts: 5
Re: Code::Blocks Linker Setting -lgfortran
« Reply #1 on: November 03, 2011, 12:09:50 am »
I fixed the problem by adding the linker option:   -llapack