2014-02-09 93 views
1

我得到这个错误编译:埃罗与升压

CXX  luascript.o 
In file included from /usr/include/boost/filesystem.hpp:15:0, 
       from luascript.cpp:21: 
/usr/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3 
# error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3 
    ^
make[1]: *** [luascript.o] Error 1 
make[1]: Leaving directory `/root/src.DEB' 
make: *** [all] Error 2 

我以前编这一点,我不记得有见过这个。

luascript.cpp的第21行是#include <boost/filesystem.hpp>

我能做些什么来解决这个问题?

我在Debian 7中使用最新的软件包和gcc 4.8.2

回答

2

你的LUA库要求 - 现在已经过时了 - 旧版本提高文件系统的。

这是changed in boost 1.50.0

Remove Filesystem Version 2 from the distribution. Version 3 is now the only distributed version. Those still using V2 are urged to migrate to V3 as soon as possible.

注意,升压1.50.0发布于2012年6月28日12:48 GMT

因此,敦促你的图书馆供应商迁移到V3 :)