读书人

fatal error C1083: Cannot open incl

发布时间: 2012-03-08 13:30:13 作者: rapoo

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 "

读书人网 >C++

热点推荐