简体   繁体   中英

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.

I create a new C++ project on VS 2015 CE VS 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.

在此处输入图片说明

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 ").

A desired entry will appear in Project Property Pages (exactly where you expect it to be):

Configuration properties -> C/C++

There will be subentry " Preprocessor ".

Alternatively, you may create a project of type

Visual C++ -> Win32 -> Win32 Console Application (or, more general, Win32 Project )

This type of projects already contains C++ files with some simple code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM