1. <small id='cm57F'></small><noframes id='cm57F'>

      <legend id='cm57F'><style id='cm57F'><dir id='cm57F'><q id='cm57F'></q></dir></style></legend>
      <i id='cm57F'><tr id='cm57F'><dt id='cm57F'><q id='cm57F'><span id='cm57F'><b id='cm57F'><form id='cm57F'><ins id='cm57F'></ins><ul id='cm57F'></ul><sub id='cm57F'></sub></form><legend id='cm57F'></legend><bdo id='cm57F'><pre id='cm57F'><center id='cm57F'></center></pre></bdo></b><th id='cm57F'></th></span></q></dt></tr></i><div id='cm57F'><tfoot id='cm57F'></tfoot><dl id='cm57F'><fieldset id='cm57F'></fieldset></dl></div>
      <tfoot id='cm57F'></tfoot>
        <bdo id='cm57F'></bdo><ul id='cm57F'></ul>

        错误的“无法解析标识符"在 Netbeans 中

        时间:2023-08-27
      1. <legend id='68QdL'><style id='68QdL'><dir id='68QdL'><q id='68QdL'></q></dir></style></legend>

          <tfoot id='68QdL'></tfoot>
            <bdo id='68QdL'></bdo><ul id='68QdL'></ul>

                <small id='68QdL'></small><noframes id='68QdL'>

                  <tbody id='68QdL'></tbody>

                  <i id='68QdL'><tr id='68QdL'><dt id='68QdL'><q id='68QdL'><span id='68QdL'><b id='68QdL'><form id='68QdL'><ins id='68QdL'></ins><ul id='68QdL'></ul><sub id='68QdL'></sub></form><legend id='68QdL'></legend><bdo id='68QdL'><pre id='68QdL'><center id='68QdL'></center></pre></bdo></b><th id='68QdL'></th></span></q></dt></tr></i><div id='68QdL'><tfoot id='68QdL'></tfoot><dl id='68QdL'><fieldset id='68QdL'></fieldset></dl></div>
                  本文介绍了错误的“无法解析标识符"在 Netbeans 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我的程序编译良好,但 Netbeans 告诉我无法解析标识符 to_string."

                  My program compiles fine, but Netbeans tells me "Unable to resolve identifier to_string."

                  我尝试了中的所有内容Netbeans 7.2 显示无法解析标识符",尽管构建成功",我在代码辅助选项中将C++ 标准"设置为C++11".

                  I tried everything in "Netbeans 7.2 shows "Unable to resolve identifier" , although build is successful" and I set the "C++ standard" to "C++11" in the code assistance options.

                  这是迄今为止唯一给出此问题的函数.然而,这也是我使用的第一个 C++11 特性,这让我相信它与 Netbeans 不理解我使用 C++11 有关系,尽管我在代码帮助菜单中明确指定了它.

                  This is the only function giving this problem so far. It is however also the first C++11 feature I am using, which leads me to believe it has something to do with Netbeans not understanding that I am using C++11, although I specify it explicitly in the code assistance menu.

                  最小示例:

                  #include <string>
                  int main() {
                      std::to_string(1);
                  }
                  

                  在使用 nullptr

                  我突然意识到有必要提及我不使用生成的 Makefile,而是使用 SCons.

                  I suddenly realized it might be important to mention that I do not use a generated Makefile, but SCons.

                  推荐答案

                  我知道这个问题已经有七个月的历史了,但由于它是谷歌搜索的第二个结果,我会告诉我想出的答案.至少对于 Netbeans.转到您的项目属性并确保将C 编译器"->C 标准"设置为 C11,并将C++ 编译器"->C++ 标准"设置为 C++11.你必须设置 BOTH 否则它仍然会给出错误的错误!

                  I know this question is seven months old but since it came up as the second result to a google search I'll tell the answer I came up with. For Netbeans at least. Go to your project properties and make sure you have you "C Compiler"->"C Standard" set to C11, and your "C++ compiler"->"C++ Standard" set to C++11. You have to set BOTH or it will still give false errors!

                  这篇关于错误的“无法解析标识符"在 Netbeans 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:cmake 和 netbeans 可以玩吗? 下一篇:Netbeans IDE for C++ 如何指定命令行参数

                  相关文章

                  <tfoot id='wIJYx'></tfoot>

                1. <legend id='wIJYx'><style id='wIJYx'><dir id='wIJYx'><q id='wIJYx'></q></dir></style></legend>

                    <bdo id='wIJYx'></bdo><ul id='wIJYx'></ul>

                  1. <i id='wIJYx'><tr id='wIJYx'><dt id='wIJYx'><q id='wIJYx'><span id='wIJYx'><b id='wIJYx'><form id='wIJYx'><ins id='wIJYx'></ins><ul id='wIJYx'></ul><sub id='wIJYx'></sub></form><legend id='wIJYx'></legend><bdo id='wIJYx'><pre id='wIJYx'><center id='wIJYx'></center></pre></bdo></b><th id='wIJYx'></th></span></q></dt></tr></i><div id='wIJYx'><tfoot id='wIJYx'></tfoot><dl id='wIJYx'><fieldset id='wIJYx'></fieldset></dl></div>

                      <small id='wIJYx'></small><noframes id='wIJYx'>