编译错误 lapack库问题

编译一个别人的软件,需要用到lapack和blas库,已经将编译好的lapack库文件libblas.a,liblapack.a,libtmglib.a拷贝到/usr/local/lib下

并且修改makefile里面的路径如下:

YOUR_INCLUDE_PATH =-I/usr/include:-I/usr/local/include

YOUR_INCLUDE_METIS_PATH =/home/lc/3D/graclus1.2/metisLib

YOUR_LDLIB_PATH =-L/usr/lib:-L/usr/local/lib

然后make时候出现很多未定义错误如下:

//usr/local/lib/liblapack.a(sgesvd.o): In function `sgesvd':
/home/lc/3D/lapack-3.3.0/SRC/sgesvd.f:216: undefined reference to `_gfortran_concat_string'
/home/lc/3D/lapack-3.3.0/SRC/sgesvd.f:380: undefined reference to `_gfortran_concat_string'
/home/lc/3D/lapack-3.3.0/SRC/sgesvd.f:728: undefined reference to `sgemm_'
/home/lc/3D/lapack-3.3.0/SRC/sgesvd.f:861: undefined reference to `sgemm_'
/home/lc/3D/lapack-3.3.0/SRC/sgesvd.f:1006: undefined reference to `sgemm_'
/home/lc/3D/lapack-3.3.0/SRC/sgesvd.f:1163: undefined reference to `sgemm_'
/home/lc/3D/lapack-3.3.0/SRC/sgesvd.f:1320: undefined reference to `sgemm_'
//usr/local/lib/liblapack.a(sgesvd.o):/home/lc/3D/lapack-3.3.0/SRC/sgesvd.f:1468: more undefined references to `sgemm_' follow
//usr/local/lib/liblapack.a(slarfb.o): In function `slarfb':
/home/lc/3D/lapack-3.3.0/SRC/slarfb.f:143: undefined reference to `scopy_'
/home/lc/3D/lapack-3.3.0/SRC/slarfb.f:149: undefined reference to `strmm_'
/home/lc/3D/lapack-3.3.0/SRC/slarfb.f:157: undefined reference to `sgemm_'
/home/lc/3D/lapack-3.3.0/SRC/slarfb.f:163: undefined reference to `strmm_'

请高人指点一下,ths!

作者: pipipdedr   发布时间: 2011-03-29

C/C++ code
YOUR_INCLUDE_METIS_PATH =[color=#FF0000]-I[/color]/home/lc/3D/graclus1.2/metisLib

作者: hhbgk   发布时间: 2011-03-29


YOUR_INCLUDE_METIS_PATH =-I/home/lc/3D/graclus1.2/metisLib

作者: hhbgk   发布时间: 2011-03-29

没看明白上面的什么意思还

作者: pipipdedr   发布时间: 2011-03-29

貌似不是这个问题,试了下,还是一样的。。。

作者: pipipdedr   发布时间: 2011-03-29

头疼,不知到怎么办好

作者: pipipdedr   发布时间: 2011-03-29