0

消息如下:

$:~/software/version_1.02/example$ gcc -Wall -Wextra example.c -I../include -L../lib -lnnmf -larpack -llapack \
-lblas -o main
In file included from example.c:47:
../include/nmfdriver.h:92:7: warning: no newline at end of file
example.c:53: warning: unused parameter ‘argc’
example.c:53: warning: unused parameter ‘argv’
/usr/bin/ld: cannot find -larpack
collect2: ld returned 1 exit status
$:~/software/version_1.02/example$ ls /usr/lib/*arpack*
/usr/lib/libarpack.so.2  /usr/lib/libarpack.so.2.0.0

由(包管理器)arpack安装。yum我想知道为什么找不到。有谁知道如何解决这个问题?

4

1 回答 1

5

它可能正在寻找没有版本后缀的库。
尝试创建一个没有版本后缀的链接到一个版本化的链接:

sudo ln -s /usr/lib/arpack.so.2 /usr/lib/arpack.so
于 2012-12-18T06:28:39.490 回答