在VS社区2015中创建一个控制台应用程序并从x64开始。通过属性面板添加一个额外的include目录,并将该目录中的#include .h文件添加到代码中。一切都很好,它会编译。切换到x86和#include上的红色波浪线表示系统找不到包含文件。编译尝试会产生相同的结果。附加目录仍列在属性面板中。帮助赞赏。
In VS Community 2015 create a console app and start with x64. Add an additional include directory via the properties panel and #include a .h file from that directory to the code. All is well and it will compile. Switch to x86 and the red squiggly line on the #include indicates the system can't find the include file. A compile attempt gives the same result. The additional directory is still listed in the properties panel. Help appreciated.
推荐答案
On 11/21/2016 9:32 AM,EmDubU写道:
On 11/21/2016 9:32 AM, EmDubU wrote:
通过属性面板添加一个额外的包含目录
Add an additional include directory via the properties panel
请注意,属性设置是每个配置(这是具有多个配置的重点) )。使用该对话框时,请注意左上角的"活动配置"下拉列表。您可能在x64配置中添加了目录,而不是x86配置。
Note that Properties settings are per configuration (which is the whole point of having multiple configurations). When working with that dialog, pay attention to the Active Configuration drop-down in the top left. You likely added the directory in x64 configuration, but not the x86 one.
更多推荐
无法找到包含文件x86但x64确定
发布评论