2012-04-21 56 views
0

我試圖編譯在FreeBSD(不是我的),它使用升壓一些代碼,但是當我運行的Makefile,我得到了以下錯誤:FreeBSD的,升壓,編譯失敗

 
g++ -Wall -I/usr/local/include/boost `taglib-config --cflags` -fPIC -O3 -DBOOST_UBLAS_NDEBUG -DNDEBUG -c -o Codegen.o Codegen.cxx 
In file included from SubbandAnalysis.h:11, 
       from Fingerprint.h:12, 
       from Codegen.cxx:13: 
MatrixUtility.h:12:42: error: boost/numeric/ublas/matrix.hpp: No such file or directory 
MatrixUtility.h:13:48: error: boost/numeric/ublas/matrix_proxy.hpp: No such file or directory 
In file included from SubbandAnalysis.h:11, 
       from Fingerprint.h:12, 
       from Codegen.cxx:13: 
MatrixUtility.h:15: error: 'boost' has not been declared 
MatrixUtility.h:15: error: 'ublas' is not a namespace-name 

我沒有安裝升壓,而文件matrix.hpp等確實在文件夾/usr/local/include/boost/numeric/ublas/

我能做些什麼來解決它?

回答

3

-I/usr/local/include/boost應該只是-I/usr/local/include

因爲它是現在,對於/usr/local/include/boost/boost/numeric/ublas/matrix.hpp編譯器搜索

+0

非常感謝。這真的起作用了。 – Ibolit 2012-04-21 11:03:36