[gambit-list] Compiling Meroon objects and initializers
Bradley Lucier
lucier at math.purdue.edu
Sat Jul 9 13:31:49 EDT 2011
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
More information about the Gambit-list
mailing list