Bra*_*cus 9 c++ netbeans netbeans-8 c++17 netbeans-11
在“工具”>“选项”>“C/C++”>“其他”中,没有将 C++17 作为默认标准的选项。
你如何编译需要 C++17 的代码?
sko*_*isa 13
更新了 NetBeans 12 的 3/28/21,如本答案末尾所述。
在C ++ 17标准中的NetBeans 8.2发布之后发布一年多了,所以C ++ 17是不能作为的8.2标准版本的选项。
但是,NetBeans 错误报告错误 271136 - 支持 C++17 标准解决了这个缺陷,如果您从 2018 年开始下载并安装任何最新的 NetBeans 8.2 夜间版本,问题将得到解决;创建 C++ 项目时,C++17可用作选项:
如果您随后选择{project} > Properties > Build > C++ Compiler,您可以验证是否正在使用C++17标准:
笔记:
20 年 1 月 21 日和 20 年 1 月 22 日更新:
这些是使 C++17 在 NetBeans 11.2 上可用所需的步骤:



21 年 3 月 28 日更新了 NetBeans 版本 12.x:
坏消息:NetBeans 不再正式支持 C++!请参阅 NetBeans 团队负责人 Geertjan Welenga 于 21 年 3 月 25 日对最近的错误报告NETBEANS-5501 C++17 不再可用的明确答复:
*At the moment, NetBeans doesn't support C/C++, the plugins you were/are using from 8.2 are not really officially supported, though work on this is ongoing here, with an end goal to having it officially part of NetBeans, though that will take a while:
https://lists.apache.org/thread.html/r4ac84633554ce80d99b0710e7a803ce1dc322680c914b18058876b51%40%3Cdev.netbeans.apache.org%3E
You're welcome to join in with the discussions on dev above.*
Run Code Online (Sandbox Code Playgroud)
这就是说,有一个非官方的解决办法,如在错误报告中详述 NETBEANS-4452的插件安装程序发现装载C / C ++远程开发API的问题超时......而安装以下插件:C ++。那是:
| 归档时间: |
|
| 查看次数: |
3404 次 |
| 最近记录: |