Hi Xypron, Thank you for your contribution.
I included your batch files, makefiles, and config.h for VC++ 9.0 to build glpk under both w32 and w64 in the glpk distribution. I also added preprocessor variable HAVE_LP64 in glplib.h to resolve the data alginment issue in 64-bit environment. (Though probably it would be better to specify the alginment boundary itself.) However, I have neither VC9 nor 64-bit machine, so I am unable to check if all this works correctly. Could you (or maybe someone else on the list) please do that? If so, I will post you the 4.31 distribution tarball. Andrew Makhorin > I tried to compile GLPK with Visual Studio 2008 C++ Express Edition and > Microsoft Platform SDK for Windows 2003 Server R2. It always gave me an > error that libc.lib could not be found. > > Visual Studio Express comes without libc.lib. Instead libcmt.lib is > supplied. Hence it is necessary to call cl.exe with /MT. The flag is > described in > http://msdn.microsoft.com/en-us/library/2kzt1wy3(VS.71).aspx > http://msdn.microsoft.com/en-us/library/2kzt1wy3(VS.71).aspx > > As VC6 is not available anymore but Visual Studio Express and the > Windows SDK are provided for free it might be useul to add appropriate > makefiles to the distribution. In the files in the following archive I > have also enabled the ODBC support as SQL headers are provided by the > Windows SDK. > ftp://glpk.dyndns.org/glpk/win32/Build_with_VC2008.tar.gz > ftp://glpk.dyndns.org/glpk/win32/Build_with_VC2008.tar.gz > > It would be great if somebody else from the community could confirm > that the provided makefiles work for him/her. > recently the question of compiling for 64 bit Windows has been posed. > Please, find the necessary makefiles for "Microsoft Visual Studio > Express 2008" and "Windows Software Development Kit (SDK) for Windows > Server 2008" at > ftp://glpk.dyndns.org/glpk/win64/glpk-4.30-win64-makefiles.tar.gz > I had to patch glplib.h with > #define align_boundary 16 > As problems with align_boundary have recurred for 64bit compiling I > suggest creating a switch in config.h > For compiling I used > Microsoft Windows Server 2003 R2 Enterprise x64 Edition > which is available as evaluation copy from > http://technet.microsoft.com/en-us/windowsserver/bb430831.aspx _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
