【发布时间】:2012-04-21 10:45:41
【问题描述】:
我正在尝试在 FreeBSD(不是我的)上编译一些使用 boost 的代码,但是当我运行 Makefile 时,我收到以下错误:
g++ -Wall -I/usr/local/include/boost `taglib-config --cflags` -fPIC -O3 -DBOOST_UBLAS_NDEBUG -DNDEBUG -c -o Codegen.o Codegen.cxx 在 SubbandAnalysis.h:11 包含的文件中, 来自指纹.h:12, 来自 Codegen.cxx:13: MatrixUtility.h:12:42: 错误: boost/numeric/ublas/matrix.hpp: 没有这样的文件或目录 MatrixUtility.h:13:48: 错误: boost/numeric/ublas/matrix_proxy.hpp: 没有这样的文件或目录 在 SubbandAnalysis.h:11 包含的文件中, 来自指纹.h:12, 来自 Codegen.cxx:13: MatrixUtility.h:15: 错误: 'boost' 尚未声明 MatrixUtility.h:15:错误:“ublas”不是命名空间名称我确实安装了boost,文件matrix.hpp等确实在文件夹/usr/local/include/boost/numeric/ublas/中。
我能做些什么来解决它?
【问题讨论】: