<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Thanks for the reply.<BR>
<BR>
Is there a preferred means for compiling embedded programs? I imagine I should use Microsovt VC++ CL.exe...<BR><BR>Thank you,<BR>
Matthew P.<BR><BR><BR>
<HR id=stopSpelling>
<BR>
> From: mflatt@cs.utah.edu<BR>> To: czhu@cs.utah.edu<BR>> CC: mvfpadilla@hotmail.com; plt-scheme@list.cs.brown.edu<BR>> Subject: Re: [plt-scheme] mzc embedding question<BR>> Date: Fri, 30 Nov 2007 10:36:29 -0700<BR>> <BR>> At Fri, 30 Nov 2007 10:32:54 -0700, Chongkai Zhu wrote:<BR>> > Matthew Padilla wrote:<BR>> > > Hello,<BR>> > > <BR>> > > I would like to compile a C++ program that embeds MzScheme, similar to <BR>> > > the example given in the online documentation (see example at end of <BR>> > > email). I would like to be able to pass it<BR>> > > strings representing arbitrary Scheme programs, and have it evaluate them.<BR>> > > <BR>> > > I am running Microsoft's Visual C++ Express, on a Vista machine. <BR>> > > <BR>> > > Am I mistaken, or can I use mzc for this purpose? It seems as though <BR>> > > mzc makes life easier by resolving linkage issues, etc. (e.g. to <BR>> > > MzScheme libraries) but I'm not sure if this is only for<BR>> > > extension writing. I've managed to produce .obj files via mzc... but <BR>> > > not an .exe.<BR>> > <BR>> > Sure you can.<BR>> > <BR>> > mzc --cc yourfile.c<BR>> > mzc --ld yourfile.exe yourfile.obj<BR>> > <BR>> > should work.<BR>> <BR>> Actually, I don't think this works. `mzc --ld' is set up for linking<BR>> shared objects that are loaded as extensions.<BR>> <BR>> I don't think `mzc' is going to be much help for creating embedding<BR>> executables. It tries to use all the right compiler/linker flags for<BR>> creating extensions, which are usually not the right flags for creating<BR>> embeddings.<BR>> <BR>> Matthew<BR>> <BR><BR></body>
</html>