<br><br><div class="gmail_quote">2009/7/13 Jens Axel Søgaard <span dir="ltr"><<a href="mailto:jensaxel@soegaard.net">jensaxel@soegaard.net</a>></span></div><div class="gmail_quote"><span dir="ltr"></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div>Now for the correct options for 3m. I am missing a library, when I link.</div><div></div></div></blockquote><div>... </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div><br></div><div><div>jas$ ld -L./pltcur/lib/ -lmzscheme3m -F./pltcur/lib/ -framework PLT_MzScheme embedded_3m.o </div>
<div>Undefined symbols:</div><div> "___maskrune", referenced from:</div><div> _scheme_do_format in libmzscheme3m.a(string.o)</div><div>...</div></div><div></div></div></blockquote><div><br></div><div><br>
</div><div>Changing the order of the switches and let gcc take care of the linking does the trick:</div><div><br></div><div><div>gcc -L./pltcur/lib/ -I./pltcur/include/ -F./pltcur/lib/ -framework PLT_MzScheme -lmzscheme3m embedded.3m.c </div>
<div><br></div></div><div>Here mzc -x produces embedded.3m.c.</div><div><br></div><div>For the direct 3m example in the docs I had to add </div><div><div> #define MZ_PRECISE_GC 1</div><div>as the first line before I got it working.</div>
<div><br></div><div>I know the documentation needs to cater Windows, Linux and OS X, and thus</div><div>including examples of compilation might be a little verbose - but perhaps</div><div>they could be put in a footnote or an appendix?</div>
<div><br></div><div>For non-C hackers it takes a while to find the right gcc incantation.</div></div><div>-- </div></div>Jens Axel Søgaard<br><br>