为了翻译hello.spl成 C,我运行./spl2c <hello.spl> hello.c它工作正常。
接下来我运行gcc hello.c,但我收到此错误:
fatal error: spl.h: No such file or directory.
spl.h并且hello.c在同一个目录中。我试图将 include 语句hello.c从#include <spl.h>to更改为#include "spl.h",但是在运行时出现了几个错误,gcc hello.c例如:
undefined reference to 'global_initialize'
undefined reference to 'initialize_character'
谁能告诉我发生了什么事?