wgtdkp / wgtcc

A small C11 compiler
MIT License
765 stars 130 forks source link

Can't find include file in current directory #31

Closed huangguiyang closed 7 years ago

huangguiyang commented 7 years ago

Assume we have two files named foo.h and foo.c in ~/Downloads/, and:

/* foo.c */
#include "foo.h"

Then:

wgtcc -E ~/Downloads/foo.c

wgtcc can't find foo.h

wgtdkp commented 7 years ago

God, I should have tested this case long before. I may have updated IncludeHeaderFile procedure after and forgot to test it again...... Thanks, I am going to fix them next week :)

wgtdkp commented 7 years ago

I looked into the code, and find it works fine for me, I edit no code. Have you fetched my latest code?