使用犰狳的 eig_sym 时我无法编译

问题描述

当我尝试编译使用犰狳中的 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 (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...