Hi Mark,
You can use the project files in the Gambit directory/misc/proj_msc.zip
You just have to add "./include" to include directories, delete all
files from the project and add all files in lib and gsi (gsc) based on
the project you use (for gsi or gsc). You also have to add the winsock
library (ws2_32) to the libs.
It works fine in b12 but when I tried with b13 I got errors:
c:\gambc40b13\lib\_io.c(10369) : error C2065: '___REGISTER_HOST_ENTRY' :
undeclared identifier
c:\gambc40b13\lib\_io.c(10369) : error C2146: syntax error : missing ';'
before identifier '___jump'
Scott Graham posted the the VC 7.1 projects for b13 on 5/14/2005 in the
forum, you can search for his message. He fixed the compilation for b13
and I hope it works fine.
If b13 doesn't work for you, you can use b12 but be aware there is a fix
for console redirection you have to apply if you use it in an
application compiled for the graphical subsystem (non console mode).
Marc posted it in the forum a while ago. Also in b12 if you compile it
in C++ mode you'll have to fix some compilation errors, mostly casts and
a couple of nested functions you have to move outside.
I hope it helps,
Dan.
-----Original Message-----
From: mark_shirley(a)comcast.net [mailto:mark_shirley@comcast.net]
Sent: Wednesday, July 13, 2005 10:09 PM
To: dhristodorescu(a)borderfree.com
Cc: gambit-list(a)iro.umontreal.ca
Subject: RE: [gambit-list] Gambit 4.0 under MS Windows
Wrom: LBXFGGMEPYOQKEDOTWFAOB
I used mingw on Windows, the latest beta 13 can be compiled
without problems even when using C++ (--enable-cplusplus). I
haven't compiled b13 with Visual Studio but I compiled b12 and I
had to fix the file reference in the project but tha's fairly
easy.
Regards,
Dan Hristodorescu.
Dan,
Thank you. That gives me some hope.
I want to compile Gambit with Visual Studio, because my end goal is
to build it as a library which can be linked into a larger system
system that builds under VS. Doing them all in the same framework
will make my life easier.
You compiled b12 under VS. Since there's no makefile or project for
VS yet, can you say more about what you had to do to do that? Which
project file did you fix a reference in? Can you send me your prj
and sln files for b12? (I believe I haven't gotten the compiler
directives correct, and particularly the defines used by the various
macros.)
I got b11 compiled under Visual Studio, but it was easy. I just
started an empty project, added the compiler and interpreter .c
files, and it almost compiled. Some tweaks and I was done. This
time, I'm getting syntax errors because macros aren't defined.
Since the tree of DEFINEs is complex, I'm trying to find out where
to get a set of commandline args for a compile by visual studio.
Any suggestions would be very welcome.
Thanks,
Mark