【发布时间】:2016-09-16 23:29:48
【问题描述】:
我正在尝试在 Visual Studio 2015 上运行 cpp 应用程序。此应用程序是使用 Visual Studio 2010 使用 boost 1.55 开发的,因此我使用 b2 --toolset=msvc-10.0 --build-type=complete architecture=x86 address-model=64 stage 编译了库,在链接器部分和包含目录中添加了 dll 文件夹在成瘾包括。尽管如此,我仍然遇到很多错误,例如:
namespace "std" do not include member "time_t"
namespace "std" do not include member "system"
您对我如何解决这个问题有任何想法吗?
谢谢。
【问题讨论】:
-
如果指定在 64 位中构建 boost,为什么还要指定 32 位架构?
-
你是
#include <ctime>还是std::time_t和#include <cstdlib>是std::system?
标签: c++ visual-studio boost visual-studio-2015