老師給了個代碼,我安裝了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
請問各路大神這個如何解決?
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/61542.html
標籤:基礎類
