<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Final working solution in case it helps anybody but I doubt it as I am usually the stupidest person in the room:<div><br></div><div><div><font face="Andale Mono"><span style="font-style: normal;">SDL2FLAGS=`pkg-config --cflags sdl2`</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">SDL2LIBS=`pkg-config --libs sdl2`</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">FLAGS=-s $(GRADE) -O4 -E --cflags "$(SDL2FLAGS)" $(SDL2LIBS) -lsdl2</span></font></div><div><br></div><div>Works fine, not sure why I had to do it this way now but as I say, there ain't no cure for stupid.</div><div><br></div><div>Thanks again.</div><div>Sean</div><div><br></div><div><br><blockquote type="cite"><div>On 16 Nov 2022, at 21:17, Sean Charles (emacstheviking) <objitsu@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=us-ascii"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>Fixed it with:  </div><div><font face="Andale Mono"><span style="font-style: normal;"><span class="Apple-tab-span" style="white-space:pre">     </span>--c-include-directory  /opt/homebrew/include/SDL2</span></font></div><div><div><br></div><div>This is a mystery, I have never used this flag before in my SDL2 projects!</div><div>Just lucky I guess... if I have time I'll boot up my older imac and check out the projects. Very odd.</div><div><br></div><div>Presumably there is an equivalent linker option for the libs folder.</div><div><br></div><div>Thanks for your time agian Zoltan.</div><div><br><div><br><blockquote type="cite"><div>On 16 Nov 2022, at 21:08, Sean Charles (emacstheviking) <objitsu@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><meta http-equiv="content-type" content="text/html; charset=us-ascii"><div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">OK, -V is a good option!!<div>I added that to my makefile and rebuilt, near the end I saw the compiler invocation:<div><br></div><div><div><font face="Andale Mono"><span style="font-style: normal;">% Compiling `Mercury/cs/agame.c':</span></font></div><div><font face="Andale Mono"><span style="font-style: normal;">% Invoking system command `gcc -I. -I. -I./Mercury/mihs -I/usr/local/mercury-22.01.3/lib/mercury/lib/hlc.gc/inc -I/usr/local/mercury-22.01.3/lib/mercury/conf -I/usr/local/mercury-22.01.3/lib/mercury/inc   -O2 -fomit-frame-pointer -fno-strict-aliasing -DMR_HIGHLEVEL_CODE -DMR_CONSERVATIVE_GC -DMR_BOEHM_GC -DMR_TAGBITS=3        -w    -c Mercury/cs/agame.c -o Mercury/os/agame.o'...</span></font></div><div><br></div><div>So it is definitely using gcc at least. The output was been truncated. It says to see agame.err for the complete log but that doesn't contain the above line. I am very suspicious of the two initial '-I' options as they appear to be just pointing at the current folder? I see no mention of my desired include paths in the final output so for some reason as yet undetermined I've failed to pass these through to the build process!</div><div><br></div><div>The worst part is I know it's my fault....   :|</div><div><br></div><div>Sean.</div><div><br></div><div><br><blockquote type="cite"><div>On 16 Nov 2022, at 20:51, Zoltan Somogyi <zoltan.somogyi@runbox.com> wrote:</div><br class="Apple-interchange-newline"><div><div><br>2022-11-17 07:45 GMT+11:00 "Sean Charles (emacstheviking)" <objitsu@gmail.com>:<br><blockquote type="cite">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?<br></blockquote><br>The section "Output options" in the user's guide, which is section 9.4<br>in the ROTD version, has several options that print relevant information.<br>You can also just give the -V flag to mmc, and it will tell you the exact<br>command line it is using to compile the .c file to .o.<br><br>Zoltan.</div></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div></body></html>