Minix 中包含错误的语法
我正在用 C 语言为 Minix 开发一个项目,我有一个文件夹来放置名为 core
的设备驱动程序。在 main.c
中,我包含了该文件夹内的 vbe.h
,而 make
总是给我一个 bad 错误句法。
我尝试了两种方法:
#include "./core/vbe.h"
#include "core/vbe.h"
我总是出错!
谁能帮助我吗?
I am developing a project for Minix in C Language and I have a folder to put the drivers of the devices called core
. In the main.c
I did an include of the vbe.h
that is inside this folder and the make
give me allways an error of bad syntax.
I tried two ways:
#include "./core/vbe.h"
#include "core/vbe.h"
I have always an error!
Can anyone help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是为了让互联网知道,我遇到了这个错误并解决了它。我相信我也明白其中的原因。
我在未初始化的文件中使用了一个数组。当我注意到这一点并将数组注释掉时,它编译得很好。
我对错误措辞的推理是它假设我想包含这个数组,并且我忘记包含另一个文件。太烦人了。
Just so that the internet knows, I got this error and solved it. I believe I understand the reason as well.
I had used an array within a file which was not initialized. When I noticed this and commented the array out, it compiled fine.
My reasoning for the wording of the error is that it assumed I wanted to include this array, and that I forgot to include another file. So annoying.