Visual Studio 2012 - location of Conditional Compilation Symbols settings

£可爱£侵袭症+ 提交于 2019-12-08 02:39:30

问题


I cannot for the life of me find the field where I'm meant to input the conditional compilation symbols for a project in Visual Studio 2012. I'm new to this feature so I don't know if it's been renamed something else, but I'm trying to follow this guide but I get stuck at picture #4. I can't find a Build tab in the project properties, let alone the conditional compilation symbols field. I'm in a C++ project if that makes a difference.

I've looked in documentation and Googled it to no avail. Thanks!


回答1:


Ok so someone else I asked has found the solution:

  1. Go to Project properties > Configuration Properties > C/C++ > Preprocessor
  2. In Preprocessor Definitions click the drop-down arrow on the right and do <edit>.
  3. Add the new definition to the text box on a new line.

Credit to user Steve.



来源:https://stackoverflow.com/questions/16721567/visual-studio-2012-location-of-conditional-compilation-symbols-settings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!