【发布时间】:2012-07-18 13:07:22
【问题描述】:
我尝试安装 MongoDB 的驱动程序 C++ 已经 2 天了,但我一直遇到同样的错误(在 Mac OS X 环境中)
In file included from /opt/local/include/boost/filesystem/operations.hpp:24,
from /opt/local/include/boost/filesystem/convenience.hpp:22,
from pch.h:83,
from pch.cpp:18:
/opt/local/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
In file included from util/goodies.h:22,
from pch.h:161,
from pch.cpp:18:
util/concurrency/mutex.h: In function 'boost::xtime mongo::incxtimemillis(long long int)':
在安装 lib 之前(通过执行“scons”),我通过 portmac(sudo port install boost)安装了 pcre 和 boost。
有什么想法吗?我现在真的卡住了..
谢谢各位。
【问题讨论】:
-
您安装了哪个版本的
boost?您要编译哪个版本的 C++ 驱动程序?看起来您可能从端口安装了不兼容的 boost 版本。
标签: c++ macos mongodb boost boost-filesystem