【问题标题】:Erro compiling with boost使用 boost 编译时出错
【发布时间】:2014-02-09 23:17:45
【问题描述】:

我收到此错误:

  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

【问题讨论】:

    标签: c++ gcc boost boost-filesystem


    【解决方案1】:

    您的 LUA 库需要 - 现已过时 - 旧版本的 Boost 文件系统。

    这是changed in boost 1.50.0

    从发行版中删除文件系统版本 2。版本 3 现在是唯一的分布式版本。敦促仍在使用 V2 的用户尽快迁移到 V3。

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

    所以,敦促您的图书馆供应商迁移到 V3 :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-12
      • 2016-07-25
      相关资源
      最近更新 更多