严重错误C1083:无法打开包含文件:'altivec.h':没有此类文件或目录 [英] fatal error C1083: Cannot open include file: 'altivec.h': No such file or directory

查看:411
本文介绍了严重错误C1083:无法打开包含文件:'altivec.h':没有此类文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您可以将包含"altivec.h"文件的文件夹添加到VC ++目录中:
在Visual Studio上,选择工具"->选项"菜单项,然后选择项目和解决方案"->"VC ++目录"节点,在显示目录"列表中选择包含文件",最后添加适当的文件夹.
即使在执行上述步骤后,我仍然遇到相同的错误.我还下载了altivec.h文件,但问题仍未解决

You may add the folder containing the "altivec.h" file to the VC++ directories:
On Visual Studio choose the Tools->Options menu item, then select the Projects and Solutions->VC++ Directories node, select the Include files in the Show directories for list and finally add the proper folder.

even after the above procedure i still get the same error.i also downloaded the altivec.h file but problem is not solved

推荐答案

包含该文件的#include语句的任何文件的第二个副本,该文件位于与在编译时在IDE中打开的项目其余部分不同的目录树中(可能是为了比较或参考代码而打开).关闭不是项目真正一部分的文件的打开编辑窗口总是可以解决问题...
如果参考"文件意外添加到项目中,也会发生这种情况.

另一个原因可能是您希望在标准包含路径中找到文件(听起来像是您的描述),但是在项目设置(预处理器"页面)上选择了忽略标准包含路径"选项.
I have seen this happen when there is a second copy of any file containing the #include statement for that file, which is located in a different directory tree than the rest of the project open in the IDE at compile time (open for comparison or code reference perhaps). Closing the open edit window for the file that is not really part of the project always fixes the problem...
This will also occur if the "reference" file accidentally got added to the project...

Another cause can be that you are expecting the file to be found in the standard include paths (your description sounds as if you are), but have selected the "Ignore standard Include paths" option on the project settings (Preprocessor page).


这篇关于严重错误C1083:无法打开包含文件:'altivec.h':没有此类文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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