[gambit-list] Compiling Meroon objects and initializers

Roger Wilson misterrogerwilson at gmail.com
Sun Jul 10 16:01:40 EDT 2011


Fantastic.  I followed those steps and was able to compile and run the code
I'd been running interactively.  Thanks guys.

Roger.

On Sat, Jul 9, 2011 at 6:31 PM, Bradley Lucier <lucier at math.purdue.edu>wrote:

>
> On Jul 9, 2011, at 12:34 PM, Roger Wilson wrote:
>
> > That makes a lot of sense.  So my next question is how do I include
> Meroon into each source code file?
>
> You don't load it into each source file, you load it into gambit before you
> manipulate (compile, include, or load) each source file.
>
> I do the following things.
>
> (1)  I run
>
> make_meroon
>
> in the Meroon source directory to build _meroon.o1.
>
> (2) I put _meroon.o1 in
>
> ~~/lib/_meroon.o1
>
> (where ~~ is the Gambit install directory).
>
> (3)  I link ~~/bin/gsc++ to ~~/bin/gsc and ~~/bin/gsi++ to ~~/bin/gsi.
>
> (4)  I add the text
>
> (case (string->symbol (car (##command-line)))
>   ((gsi++ gsc++) (load "~~/lib/_meroon.o1"))
>   (else #f))
>
> to the file
>
> ~~/lib/gambcext
>
> (5)  When I want to use gsc with Meroon preloaded, I call gsc++, when I
> want to use gsi with Meroon preloaded, I call gsi++
>
> Brad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20110710/bdd57692/attachment.htm>


More information about the Gambit-list mailing list