由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - link的问题
相关主题
[转载] what does this mean?GCC的编译?
Link Error漆血柜求
[转载] How to keep unreference symboles during linking? (g++)[转载] ask a question.
Questions about MakefileGCC 一问
[转载] 请教三个关于emacs和perl的问题Help: convert // to /* */ in C code?
A tough compiler problemabout compiling new glibc/gcc in fc14 (转载)
[转载] molscript and grasphelp needed-install gcc/g++ 4.7 on ubuntu 14.04
where is libstdc++help
相关话题的讨论汇总
话题: ipo话题: link话题: larpack话题: usr话题: lib
进入Unix版参与讨论
1 (共1页)
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.
1 (共1页)
进入Unix版参与讨论
相关主题
help[转载] 请教三个关于emacs和perl的问题
Help on 'make'A tough compiler problem
Re: Help on 'make' & More info![转载] molscript and grasp
怎么回事?!where is libstdc++
[转载] what does this mean?GCC的编译?
Link Error漆血柜求
[转载] How to keep unreference symboles during linking? (g++)[转载] ask a question.
Questions about MakefileGCC 一问
相关话题的讨论汇总
话题: ipo话题: link话题: larpack话题: usr话题: lib