有关头文件的错误 [英] Error regarding header files

查看:53
本文介绍了有关头文件的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尽管我已经包含了"_defs.h"头文件,但仍然出现错误

严重错误C1083:无法打开包含文件:__defs.h:无此类文件或目录

Though i have included the "_defs.h"header file still i am getting the error

fatal error C1083: Cannot open include file: ''_defs.h'': No such file or directory

推荐答案

确保此文件位于编译器搜索路径中.您可以将其放在项目的同一目录(即其他源所在的目录)中,也可以将其文件夹添加到搜索路径中(单击Project->Options菜单项,然后选择Configuration Properties->C++节点,最后将该文件夹添加到Additional Include Directories).
Make sure this file is in the compiler search path. You may put it in the same directory of your project (i.e. where the other source are) or you may add its folder to the search path (click Project->Options menu item, then select the Configuration Properties->C++ node and finally add the folder to the Additional Include Directories).


确定要包含它吗?

您是否只是将Turbo C文件移动到Visual Studio?如果是这样,则不要包含头文件.
Are you sure you need to include it?

Are you trying to just move an Turbo C file to Visual Studio? If so, then don''t include the header file.


这篇关于有关头文件的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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