首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

fatal error C1083: Cannot open include file: '.\.\.\include\driver.h': No such f

2012-03-08 
fatal error C1083: Cannot open include file: ..\..\..\include\driver.h: No such file or directory

fatal error C1083: Cannot open include file: '..\..\..\include\driver.h': No such file or directory
我的头文件:
#include     <windows.h>

#include   <windef.h>  

#include   <stdio.h>  

#include   <conio.h>

#define   WIN_CONSOLE  

#include   "..\..\..\include\driver.h "  


编译后得到如下错误提示:

--------------------Configuration:   Test   -   Win32   Debug--------------------
Compiling...
test1.cpp
D:\Test\test1.cpp(11)   :   fatal   error   C1083:   Cannot   open   include   file:   '..\..\..\include\driver.h ':   No   such   file   or   directory
Error   executing   cl.exe.

Test.exe   -   1   error(s),   0   warning(s)

请问这个怎么解决啊?
非常感谢!

[解决办法]
没找到这个头文件.
看看路径是否正确.
[解决办法]
使用绝对路径哦!!!
如:#include "x:\\aakgj\\skjglskj\\dkgjsdl\\*.h "
[解决办法]
这样写、:
include "C:\\Program Files\\mytest\\01\\Include\\driver.h "
或者这样写:
#include "..\\..\\..\\include\\driver.h "

热点排行