我正在使用一个标题colors.h来组织我的源代码.标题是这样的:
#define DEFAULT 0x07
#define BLACK 0
#define GRAY 7
#define BLUE 9
#define GREEN 10
#define CYAN 11
#define RED 12
#define MAGENTA 13
#define YELLOW 14
Run Code Online (Sandbox Code Playgroud)
我将标题放在主要源代码的同一目录中kernel.c,并将其包括在内:
#include <colors.h>
Run Code Online (Sandbox Code Playgroud)
但是当我尝试编译时,我得到了这个:
ubuntu @eeepc:〜/ Development/Test $ gcc -o kernel.o -c kernel.c -Wall -Wextra -nostdlib -nostartfiles -nodefaultlibs
kernel.c:1:20:error:colors.h:没有这样的文件或目录
Ubuntu的@ EeePC的:〜/开发/测试$
我能做些什么来解决这个问题?