M*******n 发帖数: 508 | 1 【 以下文字转载自 Linux 讨论区 】
发信人: MildSeven (七星*极夜), 信区: Linux
标 题: link的问题
发信站: BBS 未名空间站 (Sat Nov 5 16:40:47 2005), 转信
用intel fortran compiler编译一个程序:
ifort -O2 -L/usr/lib -larpack -llapack -lblas -lg2c Migration.o -o
migration.out
出错信息:
IPO link: can not find -larpack
IPO link: can not find -llapack
IPO link: can not find -lblas
IPO link: can not find -lg2c
IPO Error: unresolved : dsaupd_
Referenced in eigen_spectrum.o
ld: cannot find -larpack
可是那些库文件都在/usr/lib/里呀:
$ ls /usr/lib/libarpack. | k**e 发帖数: 86 | 2 create a link file libarpack.so to libarpack.so.2 or libarpack.so.2.1.
【在 M*******n 的大作中提到】 : 【 以下文字转载自 Linux 讨论区 】 : 发信人: MildSeven (七星*极夜), 信区: Linux : 标 题: link的问题 : 发信站: BBS 未名空间站 (Sat Nov 5 16:40:47 2005), 转信 : 用intel fortran compiler编译一个程序: : ifort -O2 -L/usr/lib -larpack -llapack -lblas -lg2c Migration.o -o : migration.out : 出错信息: : IPO link: can not find -larpack : IPO link: can not find -llapack
| A**s 发帖数: 8 | 3
It will be odd there is no libarpack.so already there, unless the libraries
are not installed completely. My guess is libarpack.so is a link to libarpack.
so.2 and libarpack.so.2 is a link to libarpack.so.2.1.
As I suggested in Linux board, check your LD_LIBRARY_PATH first. If no
libarpack.so in the directory, as kyte pointed out, make a link. Probably you
don't have write permissin in /usr/lib if you are not admin. That's fine, just
create the link in build directory, but make sure to use abso
【在 k**e 的大作中提到】 : create a link file libarpack.so to libarpack.so.2 or libarpack.so.2.1.
|
|