在VC.NET2003里先包括目录,然后用类似#include "common/test.h"竟然不认识?该如何处理
在VC.NET2003里先包括目录,然后用类似#include "common/test.h"竟然不认识?
假设test.h文件位于D:\INCLUDE\common目录下,我在VS2003的VC++目录中包含D:\INCLUDE,cpp中包含#include "common/test.h ",但编译时都会报
*.cpp(8): fatal error C1083: 无法打开包含文件:“common/test.h”: No such file or directory
我在VC6里包含目录同样做确没有问题。
------解决方案--------------------
不可能把
你把/换成\看看
再检查有没有写错...
------解决方案--------------------
#include <common/test.h>
假设test.h文件位于D:\INCLUDE\common目录下,我在VS2003的VC++目录中包含D:\INCLUDE,cpp中包含#include "common/test.h ",但编译时都会报
*.cpp(8): fatal error C1083: 无法打开包含文件:“common/test.h”: No such file or directory
我在VC6里包含目录同样做确没有问题。
------解决方案--------------------
不可能把
你把/换成\看看
再检查有没有写错...
------解决方案--------------------
#include <common/test.h>