VS2013 宏在哪里定义
Where to define Macros in VS2013
我正在使用 Visual Studio 2013 并想使用 C++ Eigen 库中的一些宏(these), but I don't know how to. I found this Whosebug question,但他们的解决方案不适用于 VS2013。
编辑 - 答案:
我链接的问题已经有用户@Cam Jackson 的回答。其实我并不知道属性Manager(查看->其他windows->属性Manager)和项目的"Right-click -> Properties"不是一回事。我在引用答案:
'User Macros' will only display under 'Common Properties' if the property sheet that you're editing is specific to the project/solution! So what you need to do is open the Property Manager window in VS, right-click on your project and add a new property sheet. Then right-click->Properties on the newly created sheet, and you will now see the 'User Macros' option underneath 'Common Properties'! Hope that helps :)
我链接的问题已经有用户@Cam Jackson 的回答。其实我并不知道属性管理器(View -> Other windows -> 属性 Manager)和项目的"Right-click -> Properties"不是一回事。我引用了答案:
'User Macros' will only display under 'Common Properties' if the property sheet that you're editing is specific to the project/solution! So what you need to do is open the Property Manager window in VS, right-click on your project and add a new property sheet. Then right-click->Properties on the newly created sheet, and you will now see the 'User Macros' option underneath 'Common Properties'! Hope that helps :)
我正在使用 Visual Studio 2013 并想使用 C++ Eigen 库中的一些宏(these), but I don't know how to. I found this Whosebug question,但他们的解决方案不适用于 VS2013。
编辑 - 答案:
我链接的问题已经有用户@Cam Jackson 的回答。其实我并不知道属性Manager(查看->其他windows->属性Manager)和项目的"Right-click -> Properties"不是一回事。我在引用答案:
'User Macros' will only display under 'Common Properties' if the property sheet that you're editing is specific to the project/solution! So what you need to do is open the Property Manager window in VS, right-click on your project and add a new property sheet. Then right-click->Properties on the newly created sheet, and you will now see the 'User Macros' option underneath 'Common Properties'! Hope that helps :)
我链接的问题已经有用户@Cam Jackson 的回答。其实我并不知道属性管理器(View -> Other windows -> 属性 Manager)和项目的"Right-click -> Properties"不是一回事。我引用了答案:
'User Macros' will only display under 'Common Properties' if the property sheet that you're editing is specific to the project/solution! So what you need to do is open the Property Manager window in VS, right-click on your project and add a new property sheet. Then right-click->Properties on the newly created sheet, and you will now see the 'User Macros' option underneath 'Common Properties'! Hope that helps :)