答案与解决方案平台和解决方案配置有关
As you can see in the screenshot, the property pages are set to edit Configuration: Release and Platform: x64 which happened to be different from my "Active Solution Platform" and "Active solution configuration" which was set to Debug and x86 respectively. See the screenshot below.
When I switched to Configuration: All Configurations and Platform: All Platforms and then added the include folder, everything worked! See the screenshot below.
还要注意,我从使用VC ++目录选项组更改为C / C ++选项组。尽管这里有一些解释,但我还不太了解其中的区别。“包含目录”和“其他包含目录”之间有什么区别
我仍然不清楚为什么这个问题会被否决,但是我认为这个答案可能对其他犯了我同样错误的Visual Studio新手很有用。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句