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

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

问题描述

我正在包含3个模块的dll项目中工作.所有这些模块都包含comman头文件. c ++>一般>>包括in.de.Directory的目录,例如在所有3个模块中都包括.,.. \ include,.. \ cv \ include.我完美地完成了2个模块的工作,但在最后一个模块中发生致命错误,该错误

严重错误C1083:无法打开包含文件:``abc.h":没有这样的文件或目录,所以我无法理解路径中的问题,因为该路径对于所有模块都有效.

I am working on the dll project which contain 3 module.All these module include comman header file.I have the include folder path like mf/cv/include.now In the property dialog box I have give the path in c/c++>>general>>additional inclde Directories like .,..\include,..\cv\include in all the 3 module. I the 2 module its work perfectely,but in the last module fatal error occur that

fatal error C1083: Cannot open include file: ''abc.h'': No such file or directory So I am not not able to understand what the problem in the path bacause this path work for all the module expect one.

推荐答案

好吧,我只能猜测发生了什么,因为您甚至没有显示代码如何包含文件.也许可以帮助A的提示
Well i could only guess whats going on since you didnt even showed code how you include your file. Maybe a hint that helps A
#include "abc.h"

#include <abc.h>

不同.

由于abc.h似乎是您自己编写的标头(我只能再次猜测),因此您应该通过绝对路径或包含文件的相对路径来知道它的位置.在这里考虑这是另一个提示:也可以执行

.

Since abc.h seems to be a header you wrote yourself (i could only guess again) you should know where it is located either by absolute path or relative path to the including file. Considering this here is another hint: it is also possible to do something like

#include "../abc.h"

.

如果您需要特定的答案,请完善您的问题.

.

Please improve your question if you want specific answers.


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

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