gpt4 book ai didi

c++ - 引导文件编译错误

转载 作者:太空宇宙 更新时间:2023-11-04 14:28:30 28 4
gpt4 key购买 nike

我在使用 boost 库编译代码时遇到很多错误,主要是在我使用 Spirit 命名空间时。这些错误是 boost 文件的语法错误,例如:

boost/spirit/home/classic/dynamic/lazy.hpp(33) : error C2143: syntax error : missing ';' before '<'

boost/spirit/home/classic/dynamic/lazy.hpp(33) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

boost/spirit/home/classic/utility/grammar_def.hpp(104) : error C2039: 'nil_t' : is not a member of 'boost::phoenix'

我正在从 Visual Studio 6 迁移到 Visual Studio 2008 Express,并从最旧的 bo​​ost 版本之一迁移到最新版本。

我想知道问题出在哪里。我认为问题不可能出在 boost 库中。

最佳答案

我的猜测与 Timi Geusch 一样,是错误的#define。

我从未使用过 VS,但如果有一个选项可以在代码通过预处理器后查看代码,您也许能够找出导致问题的原因。

关于c++ - 引导文件编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1279564/

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