|
From: | Xypron |
Subject: | Re: [Help-glpk] Compiling GLPK with VC7 and ODBC support |
Date: | Thu, 12 Jun 2008 19:50:02 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9 |
Andrew Makhorin wrote:
ODBC32.DLL is a dynamic link library and supplied with Windows implementing the same standardized interface as iODBC or unixODBC do for Linux. All compilers supported by GLPK (Visual C , Borland C 5.5 and DevC++) can compile GLPK with support for ODBC32.DLL. I did this for GLPK-4.27.using the files delivered with GLPK-4.28 in /w32 glpk is compiled without ODBC support.I suggest to add a config.h file to directory /w32 defining#define ODBC_DLNAME "odbc32.dll" /* ODBC shared library name if this feature is enabled */and to change Makefile_VC6 to use compiler flags: /I. /D HAVE_CONFIG_H /D HAVE_WINDOWS_HMicrosoft Visual Studio .NET 2003 comes with the necessary header files (sql.h, ...).Would this mean linking to a static library, which is missing in older windows-native C/C++ compilers, like VC6 or BC5 ?
For GLPK-4.28 I have tested compiling with VisualC (Microsoft Visual Studio .NET 2003 professional) under Windows 2000 professional.
Changed sources and executables are available at ftp://glpk.dyndns.org/glpk/win32As GLPK is not distributed with the GMP and the MySQL libraries I would refrain from requiring these in the makefiles. The files for ODBC are distributed with Windows 2000 ff and the supported compilers. Hence adding ODBC to the makefiles makes sense.
Best regards Xypron
[Prev in Thread] | Current Thread | [Next in Thread] |