提问人:Sap BH 提问时间:8/1/2023 最后编辑:Employed RussianSap BH 更新时间:8/1/2023 访问量:11
获取对“SWM_Mark_Iteration(int)”错误的未定义引用
Getting a undefined reference to `SWM_Mark_Iteration(int)' error
问:
我正在尝试构建一个项目,在链接共享对象时出现错误
/home/bhowmik/installSoftware/swm/lib/libswm.so: undefined reference to `SWM_Mark_Iteration(int)'
用于构建项目的配置文件是
mkdir -p /home/bhowmik/installSoftware/codes;
../configure --prefix=/home/bhowmik/installSoftware/codes \
--with-online=/home/bhowmik/installSoftware/swm \
--with-boost=/home/bhowmik/buildSoftware/installSoftware/boost \
CC=mpicc \
CXX=mpicxx \
CFLAGS='-g -I/home/bhowmik/installSoftware/swm/include' \
CXXFLAGS='-g -I/home/bhowmik/installSoftware/swm/include' \
LDFLAGS='-L/home/bhowmik/lib -L/home/bhowmik/installSoftware/swm/lib' \
LIBS='-lswm' \
PKG_CONFIG_PATH=/home/bhowmik/installSoftware/argobots/lib/pkgconfig:/home/bhowmik/installSoftware/ross/lib/pkgconfig:/home/bhowmik/installSoftware/swm/lib/pkgconfig;
make clean;
make;
make install;
SWM 安装目录有三个文件夹 include、lib 和 share,lib 文件夹包含库文件,swm 的 include 文件夹包含所有头文件。libswm.a libswm.la libswm.so libswm.so.0 libswm.so.0.0.0 pkgconfig
我的LIBRARY_PATH和LD_LIBRARY_PATH看起来像:/home/bhowmik/buildSoftware/TensorflowC/lib:/home/bhowmik/buildSoftware/installSoftware/graphviz/lib:/home/bhowmik/installSoftware/binutils/lib:/home/bhowmik/installSoftware/libunwind/lib:/home/bhowmik/installSoftware/swm/lib
请让我知道如何解决链接的此问题。
答: 暂无答案
评论