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!
Chro
Ok so someone else I asked has found the solution:
- Go to Project properties > Configuration Properties > C/C++ > Preprocessor
- In Preprocessor Definitions click the drop-down arrow on the right and do
<edit>. - 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