wzymmzs 2017-05-11 12:12 采纳率: 0%
浏览 5571

linux C++ cmake编译通过,链接的时候出错

今天跑一个老师给的代码,安装了shark、boost和opencv,编译该通过了,但是链接的时候报错,错误如下:
/usr/bin/ld: CMakeFiles/test.dir/classifier.cc.o: undefined reference to symbol 'cblas_dgemm'
/usr/lib/atlas-base/atlas/libblas.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
src/CMakeFiles/test.dir/build.make:302: recipe for target 'src/test' failed
make[2]: *** [src/test] Error 1
CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/test.dir/all' failed
make[1]: *** [src/CMakeFiles/test.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

百度谷歌了好久实在不知道怎么解决,请问有木有大神指导怎么解决= =

  • 写回答

2条回答

  • oyljerry 2017-05-11 13:26
    关注

    对应的第三方库的库路径有没有包含到编译路径中。-L

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器