我有一些Windows软件,我只在远程Windows虚拟机上构建。我无法通过GUI访问远程计算机或任何其他Windows计算机。
现在我想具体介绍一下/std:c++17。通读vcproj文档时,我还没有找到在该文件中添加该选项的位置。有谁能详细说明一下吗?
发布于 2020-06-16 00:59:24
假设构建基于.vcxproj项目文件(而不是外部makefile或其他文件),则在<ClCompile><LanguageStandard>下为每个配置定义语言一致性级别。例如,要将/std:c++17添加到Release x64构建,请插入(或修改)以下<LanguageStandard>行。对适用的其他配置重复上述步骤。
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<!-- other existing settings -->
<LanguageStandard>stdcpp17</LanguageStandard>
</ClCompile>
</ItemDefinitionGroup>https://stackoverflow.com/questions/62392651
复制相似问题