求解 下这个是 未定义引用 编译错误的问题
发表于 : 2013-08-19 9:18
编译 cp2k时出现的。
错误如下:
/libcp2k_lib.a(cp_blacs_calls.o): undefined reference to symbol 'blacs_pinfo_'
/usr/bin/ld: note: 'blacs_pinfo_' is defined in DSO /usr/lib/libblacsCinit-openmpi.so.1 so try adding it to the linker command line
/usr/lib/libblacsCinit-openmpi.so.1: could not read symbols: 无效的操作
collect2: 错误: ld 返回 1
make[1]: *** [/home/xianjin/cp2k/cp2k/makefiles/../exe/Linux-x86-64-gfortran/cp2k.popt] 错误 1
make[1]:正在离开目录 `/home/xianjin/cp2k/cp2k/obj/Linux-x86-64-gfortran/popt'
make: *** [build] 错误 2
我是借鉴http://hi.baidu.com/xijunw/item/b59a98265e1d6250c28d59f1
这里的方法。。
http://bcs.duapp.com/emuchnet/2013/0817 ... 42_253.jpg
错误如下:
/libcp2k_lib.a(cp_blacs_calls.o): undefined reference to symbol 'blacs_pinfo_'
/usr/bin/ld: note: 'blacs_pinfo_' is defined in DSO /usr/lib/libblacsCinit-openmpi.so.1 so try adding it to the linker command line
/usr/lib/libblacsCinit-openmpi.so.1: could not read symbols: 无效的操作
collect2: 错误: ld 返回 1
make[1]: *** [/home/xianjin/cp2k/cp2k/makefiles/../exe/Linux-x86-64-gfortran/cp2k.popt] 错误 1
make[1]:正在离开目录 `/home/xianjin/cp2k/cp2k/obj/Linux-x86-64-gfortran/popt'
make: *** [build] 错误 2
我是借鉴http://hi.baidu.com/xijunw/item/b59a98265e1d6250c28d59f1
这里的方法。。
http://bcs.duapp.com/emuchnet/2013/0817 ... 42_253.jpg