2014-02-09 97 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 :)