“cannot include source file "includes.h"; file not found”
Icc7编译时提示“cannot include source file "includes.h"; file not found”但是includes.h和main.c等其他文件都是放在同一个文件夹里的。
includes.h的内容如下:
#ifndef __includes_h
#define __includes_h
#ifdef T6963_C
#include "dot.h"
#endif
#include "t6963.h"
#include <iom16v.h>
//#include <macros.h>
#include <stdlib.h>
#include <stdio.h>
#endif
有人知道是什么原因吗? 多谢了
编译选项的include目录没有指定
cc 命令需要使用-I来指定include的目录;当然cc有几个编译器默认的系统include目录,如果你的是系统目录,可能是系统目录设置错误了;如果不是在系统目录下,就需要用cc 的参数-I来指定。
页:
[1]