gpt4 book ai didi

c++ - 未找到 boost/lexical_cast.hpp

转载 作者:行者123 更新时间:2023-12-03 12:50:31 25 4
gpt4 key购买 nike

在我不幸删除的另一个项目中,我能够使用 Boost。我在项目配置中添加了库,然后声明

#include <boost/lexical_cast.hpp>

一切都很好。

现在在我的新项目中我收到错误

boost/lexical_cast.hpp not found

我已按照 http://www.boost.org/doc/libs/1_55_0/more/getting_started/windows.html#link-from-within-the-visual-studio-ide 上的说明进行操作

我已将 boost_1_58_0\libs 的路径添加到“链接器”->“常规”->“其他库”。

但是,现在编译器抛出了上述错误。

有人知道我可能做错了什么吗?我没有对 Boost 进行任何更改。

最佳答案

您读错了章节。

该章是关于将 Boost 对象文件链接到您的项目,但是 Boost.LexicalCast 是一个仅包含头文件的库,the introductory IDE set up instructions (on the same page) are relevant .

关于c++ - 未找到 boost/lexical_cast.hpp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30687027/

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