<br><br><div class="gmail_quote">On Thu, Jul 7, 2011 at 1:07 PM, Alex Queiroz <span dir="ltr"><<a href="mailto:asandroq@gmail.com">asandroq@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hallo,<br>
<div class="im"><br>
><br>
> i.e. the code in my app that initiates Gambit looks like the standard....<br>
><br>
>  ___setup_params_reset (&setup_params);<br>
>     setup_params.version = ___VERSION;<br>
>     setup_params.linker = LINKER;   // <-------  Can only specify one module<br>
> here<br>
>     setup_params.debug_settings = debug_settings;<br>
><br>
>     ___setup(&setup_params);<br>
><br>
><br>
<br>
</div>     You must call gsc with all your modules on the command line:<br>
<br>
$ gsc -link mod1.scm mod2.scm mod3.scm ... master.scm<br>
<br>
and then you only need to "link" with the master module in your C code.<br>
<br>
Cheers,<br>
<font color="#888888">--<br>
-alex<br>
<a href="http://www.artisancoder.com/" target="_blank">http://www.artisancoder.com/</a><br>
</font></blockquote></div><br>Hi,<br><br>Thanks, that was the answer I was looking for.  However, in my case unfortunately it doesn't help as I can't get  $ gsc -link "_meroon.scm" to generate code.  I run Bradley Lucier's make_maroon, which basically concatenates all the Meroon scm files together into _meroon.scm, and then when I try $ gsc -link "_meroon.scm" I get <br>
<br>*** ERROR IN feature-present? -- Unbound variable: *meroon-features*<br><br>I suspect this is because of the way Meroon bootstraps itself.  <br><br>The only way I've been able to generate C code from Meroon is..<br>
<br>$ gsc<br>(load "old-load.scm")<br>(old-load "pre_meroon.scm")<br>(compile-file-to-c "_meroon.scm")<br>(link-incremental '('"meroon"))<br><br>That generates _meroon.c and _meroon_.c which leads me to the original problem above.  I've no idea if the C files generated that way do what I want though, as I've not been able to run any of the code in them.<br>
<br>Any ideas where I go from here?  <br><br>Roger.<br>