Hello everyone,<div><br></div><div>I am just getting started using gsc to compile files, and I'm wondering how to go about debugging some error messages I'm seeing.</div><div><br></div><div>This is what I am doing:</div>
<div><br></div><div>== inside misha-sdl.scm ==</div><div>(println "hello world")</div><div><br></div><div>== inside terminal ==</div><div>gsc -link misha-sdl</div><div>gcc misha-sdl.c misha-sdl_.c -I/Library/Gambit-C/v4.6.2/include -L/Library/Gambit-C/v4.6.2/lib -lgambc </div>
<div><br></div><div>== error message ==</div><div><div>ld: warning: ignoring file /Library/Gambit-C/v4.6.2/lib/libgambc.a, file was built for archive which is not the architecture being linked (x86_64)</div><div>Undefined symbols for architecture x86_64:</div>
<div>  "____gstate", referenced from:</div><div>      ____H__20_misha_2d_sdl in cci2oaPA.o</div><div>  "____G_println", referenced from:</div><div>      ____H__20_misha_2d_sdl in cci2oaPA.o</div><div>  "_____20___gambc", referenced from:</div>
<div>      ____linker_tbl in ccR9LONi.o</div><div>  "____main_char", referenced from:</div><div>      _main in ccR9LONi.o</div></div><div><br></div><div>The notice about skipping libgambc.a is especially worrying.</div>
<div><br></div><div>However, using the command:</div><div>gsc -o hello -exe misha-sdl.scm</div><div>works perfectly. Is there any way to query to see what flags gsc is passing to gcc? </div><div><br></div><div>Thanks very much</div>
<div>  -Patrick</div>