[plt-scheme] mzc embedding question

From: Matthew Padilla (mvfpadilla at hotmail.com)
Date: Fri Nov 30 13:02:49 EST 2007

Thanks for the reply.
 
Is there a preferred means for compiling embedded programs?  I imagine I should use Microsovt VC++ CL.exe...Thank you,
Matthew P.



> From: mflatt at cs.utah.edu> To: czhu at cs.utah.edu> CC: mvfpadilla at hotmail.com; plt-scheme at list.cs.brown.edu> Subject: Re: [plt-scheme] mzc embedding question> Date: Fri, 30 Nov 2007 10:36:29 -0700> > At Fri, 30 Nov 2007 10:32:54 -0700, Chongkai Zhu wrote:> > Matthew Padilla wrote:> > > Hello,> > > > > > I would like to compile a C++ program that embeds MzScheme, similar to > > > the example given in the online documentation (see example at end of > > > email). I would like to be able to pass it> > > strings representing arbitrary Scheme programs, and have it evaluate them.> > > > > > I am running Microsoft's Visual C++ Express, on a Vista machine. > > > > > > Am I mistaken, or can I use mzc for this purpose? It seems as though > > > mzc makes life easier by resolving linkage issues, etc. (e.g. to > > > MzScheme libraries) but I'm not sure if this is only for> > > extension writing. I've managed to produce .obj files via mzc... but > > > not an .exe.> > > > Sure you can.> > > > mzc --cc yourfile.c> > mzc --ld yourfile.exe yourfile.obj> > > > should work.> > Actually, I don't think this works. `mzc --ld' is set up for linking> shared objects that are loaded as extensions.> > I don't think `mzc' is going to be much help for creating embedding> executables. It tries to use all the right compiler/linker flags for> creating extensions, which are usually not the right flags for creating> embeddings.> > Matthew> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20071130/9bc5c0d6/attachment.html>

Posted on the users mailing list.