- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i want to use LAPACK libraries for my fortran program . i LAPACK library is kept in /usr/local/include/
when i am giving this as command for compilation
ifort *.f -L/usr/local/include/ lapack_LINUX.a blas_LINUX.a
i am getting this message
/usr/bin/ld: lapack_LINUX.a: No such file: No such file or directory
and no a.out is made...please help me out of this
thanks in advance
phoru
when i am giving this as command for compilation
ifort *.f -L/usr/local/include/ lapack_LINUX.a blas_LINUX.a
i am getting this message
/usr/bin/ld: lapack_LINUX.a: No such file: No such file or directory
and no a.out is made...please help me out of this
thanks in advance
phoru
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-Ldirectory-spec ONLY applies to libraries that are specified using the -l switch.
You aren't doing that, so you need to give the full filespec for the libraries, such as:
ifort *.f /usr/local/include/lapack_LINUX.a /usr/local/include/blas_LINUX.a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-Ldirectory-spec ONLY applies to libraries that are specified using the -l switch.
You aren't doing that, so you need to give the full filespec for the libraries, such as:
ifort *.f /usr/local/include/lapack_LINUX.a /usr/local/include/blas_LINUX.a

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page