[英]Where are C/C++ Preprocessor settings in project properties UI in VS 2015 Community Edition?
With the hope of getting trained for C++ as a zero newbie, I was following directives to create a C++ dev environment on a PC equipped with Windows 10 and Visual Studio 2015 Community Edition. 希望能接受零入门的C ++培训,我遵循指令在配备Windows 10和Visual Studio 2015 Community Edition的PC上创建C ++开发环境。
I create a new C++ project on VS 2015 CE 我在VS 2015 CE上创建了一个新的C ++项目
When I right-click project properties, I cannot locate C/C++ > Preprocessor - it's just not there as can be seen from the screenshot. 当我右键单击项目属性时,我无法找到C / C ++>预处理器-从屏幕快照中可以看到,它不在那儿。
So trying to figure out how on Earth I can add some custom preprocessor definitions here. 因此,尝试弄清楚如何在此处添加一些自定义预处理器定义。 :-(
:-(
Add at least one .cpp
or .c
file to your project (or, more generally, an item with ItemType " C/C++ Compiler "). 将至少一个
.cpp
或.c
文件添加到您的项目(或更常见的是,使用ItemType为 “ C / C ++编译器 ”的项目)。
A desired entry will appear in Project Property Pages (exactly where you expect it to be): 所需的条目将出现在“ 项目属性页”中 (恰好在您期望的位置):
Configuration properties -> C/C++
配置属性 -> C / C ++
There will be subentry " Preprocessor ". 将有子条目“ Preprocessor ”。
Alternatively, you may create a project of type 或者,您可以创建一个类型的项目
Visual C++ -> Win32 -> Win32 Console Application (or, more general, Win32 Project )
Visual C ++-> Win32-> Win32控制台应用程序 (或更常见的是Win32 Project )
This type of projects already contains C++ files with some simple code. 这种类型的项目已经包含带有一些简单代码的C ++文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.