[plt-scheme] Re: Getting started embedding mzscheme in Windows/VS2008

From: jacmoe (jacmoe at mail.dk)
Date: Sat Feb 13 18:15:02 EST 2010

I gotten a small bit futher with this.
Seems I have to build it myself, and so I did.
At least the cgc stuff.
The build process for Visual Studio is a bit too long-winded for me
this evening.
It runs, doesn't crash, but doesn't do anything.

I'd still like to know how you use mz instead of cgc.

On Feb 13, 11:51 pm, jacmoe <jac... at mail.dk> wrote:
> Hi PLT Schemers
>
> I want to use Scheme as an extension language from C++, and thought
> that PLT Scheme seems to be the most complete package.
>
> But from reading the docs, I am left confused. :)
>
> I want to use 3m for embedding, and this is the instructions you
> provide:
>
> >The simple embedding program from the previous section can be processed by mzc --xform, then compiled and linked with MzScheme3m
>
> Er ? What am I supposed to do here?
> Am I supposed to create base.c with the following command-line:
> mzc --c-mods base.c ++lib scheme/base
> And then what?
> When linking to the mz library, the program doesn't do anything - it
> crashes somewhere.
> I also had to rename base.c to base.cpp and include scheme.h directly,
> as I am using C++.
> And I threw in a #define MZ_PRECISE_GC before including scheme.
>
> Any other steps I need to do?
> Or should I just use cgc, and worry about mz later?
>
> Is there any other small example of embedding mzscheme in C++ ?
>
> Thanks. :)
> _________________________________________________
>   For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


Posted on the users mailing list.