无法找到包含文件x86但x64确定

编程入门 行业动态 更新时间:2024-10-12 01:23:56
本文介绍了无法找到包含文件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确定

本文发布于:2023-11-02 12:15:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1552367.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!