AFAIK there's people who have successfully compiled Gambit on both platforms you mention, and documented it quite well in on the ML. I don't know exactly though.<div><br></div><div>When you dug out the answer to your question, would you be interested to publish your results here?</div>
<div><br></div><div>I suppose your question is how to sucessfully do (compile-file) i.e. gcc gambit-made C files, and gsc -exe / link object files to an executable, all this done outside of the xcode programming environment.</div>
<div><br></div><div>To search on the ML, add " site:<a href="https://mercure.iro.umontreal.ca/pipermail/gambit-list/">https://mercure.iro.umontreal.ca/pipermail/gambit-list/</a>" to your search engine query.</div>
<div><br></div><div>Kind regards</div><div><div><br><div class="gmail_quote">2010/12/22 mikel evins <span dir="ltr"><<a href="mailto:mevins@me.com">mevins@me.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
A little more information, as I attempt to unravel the reasons for build failures with Gambit on Mac OS X and iOS:<br>
<br>
I figured I'd eliminate as many variables as possible by reproducing verbatim the examples in the Gambit 4.6.0 manual (pp 14-17).<br>
<br>
I created the source files used in the examples (m1.c, m2.scm, m3.scm), and compiled and linked using the example commands from those pages. Building the executable worked just fine (once I added -L/usr/local/gambit/MacOSX/lib so that gsc could find libgambc).<br>

<br>
I was not so lucky when I tried the "Building a loadable library" example on page 16:<br>
<br>
cairagor:gambit_fun mikel$ gcc -L/usr/local/gambit/MacOSX/lib -bundle m1.o m2.o m3.o foo.o1.o -o foo.o1 -lgambc<br>
ld: duplicate symbol ____G_cons in /usr/local/gambit/MacOSX/lib/libgambc.a(_gambc.o) and foo.o1.o<br>
<br>
<br>
Perhaps the latest Apple GCC needs additional args? Or perhaps Gambit or its configuration has changed so that additional flags are needed?<br>
<div><div></div><div class="h5"><br>
--me<br>
<br>
_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</div></div></blockquote></div><br></div></div>