On 2013-04-12, at 6:10 PM, Ralph Moritz ralph.moeritz@outlook.com wrote:
Marc Feeley <feeley <at> iro.umontreal.ca> writes:
On 2013-04-12, at 1:10 AM, Ralph Möritz <ralph.moeritz <at> outlook.com>
wrote:
Hi,
I've downloaded `gambc-v4_6_7-devel.tgz' and want to compile it with MSVC 11. I've tried tweaking `misc\vc2008.bat' but it bombs out with errors
[SNIP]
The problem is that you are in the wrong directory! You should be in the
Gambit root directory and type:
misc\vc2008.bat
I tried this but still get the link errors posted in my last message, namely:
/out:gsi.exe ..\lib\libgambc.lib _gsilib.obj _gambcgsi.obj _gsi.obj _gsi_.obj Kernel32.Lib User32.Lib Gdi32.Lib WS2_32.Lib _gsi.obj : error LNK2001: unresolved external symbol ____S__23__23_type_2d_18_2d_2babe060_2d_9af6_2d_456f_2d_a26e_2d_40b592f690ec _gsi.obj : error LNK2001: unresolved external symbol ____S__23__23_type_2d_36_2d_85099702_2d_35ec_2d_4cb8_2d_ae55_2d_13c4b9b05d10 _gsi.obj : error LNK2001: unresolved external symbol ____S_io_2d_exception_2d_handler gsi.exe : fatal error LNK1120: 3 unresolved externals
/out:gsc.exe ..\lib\libgambc.lib _host.obj _utils.obj _source.obj _parms.obj _env.obj _ptree1.obj _ptree2.obj _gvm.obj _back.obj _front.obj _prims.obj _t-c-1.obj _t-c-2.obj _t-c-3.obj _gsclib.obj _gambcgsc.obj _gsc.obj _gsc_.obj Kernel32.Lib User32.Lib Gdi32.Lib WS2_32.Lib _source.obj : error LNK2001: unresolved external symbol ____S__23__23_type_2d_9_2d_edd21ef2_2d_ee48_2d_407f_2d_a9a9_2d_c1c361078e55 _source.obj : error LNK2001: unresolved external symbol ____S_read_2d_cont _gambcgsc.obj : error LNK2001: unresolved external symbol _____20___assert _gambcgsc.obj : error LNK2001: unresolved external symbol _____20___asm _gambcgsc.obj : error LNK2001: unresolved external symbol _____20___x86 _gambcgsc.obj : error LNK2001: unresolved external symbol _____20___codegen _gambcgsc.obj : error LNK2001: unresolved external symbol _____20___t_2d_univ _gsc.obj : error LNK2001: unresolved external symbol ____S__23__23_type_2d_18_2d_2babe060_2d_9af6_2d_456f_2d_a26e_2d_40b592f690ec _gsc.obj : error LNK2001: unresolved external symbol ____S__23__23_type_2d_36_2d_85099702_2d_35ec_2d_4cb8_2d_ae55_2d_13c4b9b05d10 _gsc.obj : error LNK2001: unresolved external symbol ____S_io_2d_exception_2d_handler gsc.exe : fatal error LNK1120: 10 unresolved externals
Anyway, I've given up on VC11 and managed to build Gambit using MinGW.
One part of the link errors (the unresolved external symbols _____20___assert, etc) are due to files that were added to the gsc directory which need to be compiled and linked, but which were not added to the list of files in misc/vc2008.bat . I have corrected that. For your convenience the corrected file is attached.
The other link errors (the unresolved external symbols ____S__23__23_type_2d_9_2d_edd21ef2_2d_ee48_2d_407f_2d_a9a9_2d_c1c361078e55, etc) are strange. They suggest to me that one of the files failed to compile (can you check if one of the .obj files is corrupted), or you are not compiling from a stable distribution of Gambit (did you untar gambc-v4_6_7.tgz and then execute misc\vc2008.bat or did you do a "git pull" in between or something?).
Marc