<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">OK, that showed me the includes for mmc, I didn't phrase the question clearly enough, my fault. What I tried to ask for is how do I know what the final set of include paths is at compile time, and what compiler does mmc use as the default?<div><br></div><div>I wrote a simple test program, which compiles, links and runs just fine:</div><div><br></div><div><div><font face="Andale Mono"><span style="font-style: normal;">➜  agame cat test.c</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">#include <stdio.h></span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">#include <SDL.h></span></font></div><div><font face="Andale Mono"><span style="font-style: normal;"><br></span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">int main(int argc, char* argv[]) {</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">    SDL_version v;</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">    SDL_GetVersion(&v);</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">    printf("%i.%i.%i\n", v.major, v.minor, v.patch);</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">    return 0;</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">}</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;"><br></span></font></div><div><font face="Andale Mono"><span style="font-style: normal;"><br></span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">➜  agame gcc test.c -o test `pkg-config --cflags sdl2` `pkg-config --libs sdl2`</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">➜  agame ./test</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">2.24.1</span></font></div></div><div><br></div><div>and</div><div><br></div><div><div><font face="Andale Mono"><span style="font-style: normal;">➜  agame clang test.c -o test `pkg-config --cflags sdl2` `pkg-config --libs sdl2`</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">➜  agame ./test</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">2.24.1</span></font></div></div><div><br></div><div><br></div><div>This must mean then that the compiler used to compile he mercury generated files is either not 'gcc' or the '-I' flag has not been passed through? I am at a loss as this Makefile and the flags worked fine on my intel mac, I must have written a dozen sdl2 programs without issue.</div><div><br></div><div>Sean.</div><div><br></div><div><br><div><br><blockquote type="cite"><div>On 16 Nov 2022, at 20:35, Zoltan Somogyi <zoltan.somogyi@runbox.com> wrote:</div><br class="Apple-interchange-newline"><div><div><br>2022-11-17 07:26 GMT+11:00 "Sean Charles (emacstheviking)" <objitsu@gmail.com>:<br><blockquote type="cite">Is there a way to ask the compiler to show what include paths it has when compiling the generated C code ?<br></blockquote><br>--output-c-include-dir-flags<br><br>Zoltan.</div></div></blockquote></div><br></div></body></html>