I want to link LAPACK library with my fortran code (.f90) on Ubuntu 14.04
I run this with terminal option
gfortran -o main main.f95 -L"usr/lib/lapack" -llapack
and it compiles with no error.
But in Code::Blocks, I create a fortran project and goto Project->Build options
And it gives error when I build the project
gfortran error: usr/lib/lapack/liblapack.so No such file or directory
I do not understand what is going wrong. I also have LAPACK installed.
These are files at /usr/lib/lapack
liblapack.a liblapack.so liblapack.so.3 liblapack.so.3.0
Any help?