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