编译错误 lapack库问题
时间:2011-03-29
来源:互联网
编译一个别人的软件,需要用到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!
并且修改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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28