gpt4 book ai didi

c++ - 编译boost程序的问题

转载 作者:行者123 更新时间:2023-11-28 07:37:48 24 4
gpt4 key购买 nike

我正在尝试在 64 位 Windows 上的 Visual Studio Express 2012 中编译一个简单的 C++ 文件。我使用 visual studio 命令提示符安装了 boost_1_53_0。我还编译/安装了 boost 库。

这是我的包含:

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <boost\filesystem.hpp>
#include <ctime>
#include <string>

当我尝试调试或发布我的“项目”时出现以下错误。

http://pastebin.com/fBDcttKc

我已经正确设置了额外的包含目录和额外的库目录设置。

如果我遗漏了一些信息请告诉我,我刚刚开始学习 c++

谢谢!

最佳答案

was already answered .这个想法是启用自动链接或链接到适当的库。

define BOOST_ALL_DYN_LINK in the preprocessor symbols in C++ options, in the project.

关于c++ - 编译boost程序的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16390893/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com