I have made a python "compiler" that helps me compile my C code with gcc, for example it fetches all my header files and source files. So my cmd commmand is gcc {headers} {source} -o {build_dir}/build.exe -lgdi32 -w
where {headers}
is a string like -Ipath/to/headers/foo.h -Ipath/to/other/headers.foo2.h
and where {source}
is the same but with .c files. It seems that the compiler finds the header files, but when compiling my code it fails.
(btw I am trying to make a portable programming environment on my flash drive so python and mingw are both portable)
This is the error: fatal error: test.h: No such file or directory #include "test.h"
I have put the third party library files into the mingw directory instead of making a custom one and then linking it in the gcc command.