无法找到包含文件x86但x64确定 [英] Can't Find Include File x86 but x64 OK

查看:88
本文介绍了无法找到包含文件x86但x64确定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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确定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆