在 Visual Studio 2015 Enterprise 中添加 c++ 预处理器指令的位置在哪里? [英] Where is the place to add c++ Preprocessor Directives in Visual Studio 2015 Enterprise?
问题描述
我在旧版本的 Visual Studio 中看到了与此类似的问题,但在最新版本中却没有.我正在学习 Lynda.com 上的一门课程,基本上讲师正在尝试以纯粹的形式使用 C++,对于在 Mac 上使用可视化 IDE 的学生来说,这看起来是一样的.无论如何,教师设置了一个工作项目来教授语言结构等.他在 Visual Studio 中右键单击该项目,在 C++ 下有预处理器部分.
I saw questions similar to this for older versions of Visual Studio but not this latest version. I am following a course on Lynda.com and basically the instructor is trying to use C++ in a pure form that will look the same for students using a visual IDE on Mac. Anyway, the instructor sets up a Working project for teaching the language constructs and such. He right clicks on the project in Visual Studio and under C++ there is Pre-processor section.
我应该注意到他使用的是 VS 2013 Community Edition.我有一个功能更完整的 VS 2015 版本.我没有看到在项目"基础上定义预处理器指令的选项.MS 不会让我安装 VS 2015 的 2 个副本,但也许它会让我安装 VS 2013.
I should note that he is using VS 2013 Community Edition. I have a more fully featured version of VS 2015. I don't see that option for defining pre-processor directives on a "project" basis. MS won't let me install 2 copies of VS 2015, but maybe it will let me install VS 2013.
不过,我希望我的问题对我们正在努力实现的目标有足够的意义,以便我可以在 VS 2015 Enterprise 中找到该选项.谢谢,布鲁斯
Still, I hope my question makes enough sense as to what we are trying to accomplish, so that I can find the option in VS 2015 Enterprise. Thanks, Bruce
推荐答案
右键单击您的项目.选择属性.您应该会看到下面的菜单,您可以在其中导航到配置属性 > C/C++ > 预处理器.
Right click on your project. Select Properties. You should see the below menu where you can navigate to Configuration Properties > C/C++ > Preprocessor.
这是我在 Visual Studio Enterprise 2015 中看到的.
This is how I see it in my Visual Studio Enterprise 2015.
这是您要找的吗?
这篇关于在 Visual Studio 2015 Enterprise 中添加 c++ 预处理器指令的位置在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!