[gambit-list] Build gambit on windows using c++ compiler

Kartik Saranathan ksaranat at gmail.com
Thu Apr 1 19:52:45 EDT 2010


Hello all.

I'd like to compile and link gambit generated code with C++ code.  Looking
at previous posts on this mailing list the way to do it is to build gambit
with a c++ compiler.  I have Visual Studio 2008.  I tried adding the options
-TP (compile as C++ code) and -EHsc (enable c++ exceptions) to
misc/vc2008.bat but the code does not compile without modifications (there
is some type casting from void* to non-void* which require explicit cast in
c++).

What is the proper way to build gambit using the Visual Studio 2008 c++
compiler?  On unix systems I can pass --enable-cplusplus option to
configure.  Can I setup mingw or cygwin to do the same on Windows?  If so
how do I do this?

Also the windows binary distribution of Gambit 4.6.0 opens a new window when
running "gsc -exe test.scm".  Once the compile finishes the window is closed
immediately making it hard to read the output.  I notice when I compile
gambit using vc2008.bat it does not open a new window.  It would be better
if the official binary distribution did this as well.  I notice that for
binaries that I build using gsc if I define _WINDOWS it opens a new console
window.  Maybe the official windows binary distribution compiles gsc with
_WINDOWS defined?

Thank you

- Kartik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20100401/0844d839/attachment.htm>


More information about the Gambit-list mailing list