Closed joefarebrother closed 3 years ago
It looks like #include
error is reported against the next token of the #include
line. That's not a severe error but certainly confusing. Thank you for reporting.
This problem has been fixed. Now chibicc prints out an error message in the following way.
/tmp/foo.c:1: #include "foo"
^ foo: cannot open file: No such file or directory
The following file:
where
fake.h
does not exist produces the outputwhereas the error should instead be reported on the
#include
line.