Hello. Several days ago, I posted the next message in Google scheme group.<br><br><font face="Courier, Monospaced">"Hello. <br> </font><p><font face="Courier, Monospaced">Nowadays, I'm trying to make ipod touch toy applications. When I write <br>

 object-c or c code, I can't help miss macro and repl of lisp. As the <br> subject, I hope that I develop core functions with lisp (e.g. In game <br> application, they will be artificial intelligence parts), and make <br>

 them into c dynamic or static libraries. If cocoa touch application <br> can use shared libraries, object-c will be need in only GUI and <br> controller parts. Is it possible? <br> </font></p><p><font face="Courier, Monospaced">If it is possible, is there implementation which generate c libraries? <br>

 I looked around ECL, bigloo, and some other lisps, but I couldn't find <br> how to export symbols of var and function to external C and generate a <br> library rather than make standalone executable. Would you recommend a <br>

 good implementation(generate small binaries as possible, good <br> documentation...) for it? <br> </font></p><font face="Courier, Monospaced">Regards."<br><br>And Mark answered me like below, so I tried to find how to build gambit code for iPhone application in Xcode.<br>

<br></font><font face="Courier, Monospaced">"Yes, with Gambit.  See: <a rel="nofollow" href="https://webmail.iro.umontreal.ca/pipermail/gambit-list/2008-January/001966.html" target="_blank">https://webmail.iro.umontreal.ca/pipermail/gambit-list/2008-January/0...</a> "</font><br>

<br>I went to the blog (<a href="http://weblog.latte.ca/blake/tech/iTouch/languages.html" target="_blank">http://weblog.latte.ca/blake/tech/iTouch/languages.html</a>), and try to find how he makes it. But I didn't find any hint.<br>
<br>
And I read the manual of Gambit and searched in all Gambit list
archives for examples of C interoperation. Shamely, because I don't
know much about gcc build process and options, I can't figure out how I
can apply them into Xcode build process. So I decided to try it in
every way.<br>
<br>First, I asserted that my mac can generates an executable.<br><br>bash-3.2$ gsc -c m2.scm<br>bash-3.2$ gsc -c m3.scm<br>bash-3.2$ gsc -link m2.c m3.c<br>bash-3.2$ gcc m1.c m2.c m3.c m3_.c -I/usr/local/Gambit-C/current/<div id=":w2" class="ArwC7c ckChnd">
include -L/usr/local/Gambit-C/current/lib -lgambc<br>
bash-3.2$ ./a.out<br>((2 . 2) (4 . 4) (8 . 8) (16 . 16))<br><br>Next,
I tried to compile "tests/server.scm" example in Xcode iPhone
application project. Because I didn't know hot it goes, I added all
files in "/usr/local/Gambit-C/current/include" and "usr/local/Gambit-C/current/lib"
into Xcode project. And I copied generated c files and server.h file
except client.c into Xcode project. I tried next combinations.<br>
<br>all .a files in usr/local/Gambit-C/current/lib + Gambit.h +
generated "server.c" by "gsc -c server.scm" + server.h copied into
Xcode project, and "Build and Go"<br>
all .a files in usr/local/Gambit-C/current/lib + Gambit.h + generated
"server.c", "server_.c" by "gsc -link -flat server.scm" + server.h
copied into Xcode project, and
"Build and Go"<br>all files in usr/local/Gambit-C/current/lib + Gambit.h + generated
"server.c" by "gsc -c server.scm" + server.h copied into Xcode project,
and "Build and Go"<br>
all files in usr/local/Gambit-C/current/lib + Gambit.h + generated
"server.c", "server_.c" by "gsc -link -flat server.scm" + server.h
copied into Xcode project, and
"Build and Go"<br><br>All
they failed. I know I look stupid. ^_^;; Could I get some help if there
is anyone who have built Gambit code in Xcode with c or object-c files?
Thanks in advance.</div>