问题描述
当我尝试编译使用犰狳中的 eig_sym
的代码时,出现此错误
Undefined symbols for architecture x86_64:
"_wrapper2_dsyev_",referenced from:
void arma::lapack::syev<double>(char*,char*,int*,double*,int*) in main-df43f9.o
"_wrapper2_dsyevd_",referenced from:
void arma::lapack::syevd<double>(char*,int*) in main-df43f9.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我正在编译
c++ -std=c++14 main.cpp -o main
如果我删除使用 eig_sym
的行,它工作正常,但它也会为其他犰狳函数提供相同的错误。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)