[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] glpk 4.27 release information
From: |
glpk xypron |
Subject: |
Re: [Help-glpk] glpk 4.27 release information |
Date: |
Wed, 05 Mar 2008 00:34:22 +0100 |
Hello Ted,
compiling under windows requires
#include <window.h>
In Andrews release 4.27 this statement is deactivated in glpsql.c
To create a release, that can be compiled under Linux as well as MinGW and
Cygwin without editing any files, please, replace
configure.ac
configure
config.h.in
src/glpsql.c
with the files from
ftp://glpk.dyndns.org/glpk/glpk-4.27-patch-for-odbc.zip
The configure script automatically detects if the target system is Windows
(Cygwin, MinGW). Only in this case the presence of windows.h is checked and
HAVE_WINDOWS_H defined. Instead of linking to the iODBC library, odbc32.dll is
linked. You can then setup the data source in the Windows "Control Panel".
>From the start menu choose
Settings -> Control Panel -> Administrative Tools -> Data Sources (ODBC)
The appended MS Access 95 database glpk.mdb contains the sample data for
sudoku_odbc.mod and tranps_odbc.mod. Supposed Access is installed You can setup
a datasource with name "glpk" for glpk.mdb.
Best regards
Xypron
-------- Original-Nachricht --------
> Datum: Tue, 4 Mar 2008 17:07:55 +0300
> From: Andrew Makhorin
> To: Ted Poe
> CC: glpk xypron , help-glpk
> Betreff: Re: [Help-glpk] glpk 4.27 release information
> > In GLPK-4.27, config.h.in contains HAVE_SQL_H, but it does not
> > contain:
>
> > HAVE_SQLEXT_H
> > HAVE_WINDOWS_H
>
> > as it was in Xypron's glpk-4.26-tab version for compiling under
> > Windows.
>
> If sql.h exists, sqlext.h also must exist, because these headers are
> always used together.
>
> Under windows the configure script, which tunes config.h, has sense
> only if you are using cygwin. AFAIK the cygwin core includes w32 api,
> in particular, windows.h, so there is no need to check windows.h in
> the configure script.
>
> > Am I correct in assuming that, on my Windows platform, I'm currently
> > limited to xBase and CSV unless I build MySQL to have the required
> > header files to configure with --enable-mysql?
>
> If you have a cygwin version of MySQL, you can configure and build
> glpk as usual.
>
> If you need to compile glpk with a non-gnu compiler (like msvc), you
> should make necessary changes in glpsql.c by yourself. Please see:
>
> http://lists.gnu.org/archive/html/help-glpk/2008-02/msg00097.html
> http://lists.gnu.org/archive/html/help-glpk/2008-03/msg00002.html
>
> BTW, sql.h and sqlext.h are ODBC headers; MySQL header is mysql.h.
--
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games!
http://games.entertainment.web.de/de/entertainment/games/free