freeTDS under MinGW
Sergio NNX <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
Hi there,
I've downloaded the latest version of freeTDS (0.82) and I tried to build it under MinGW environment (gcc 4.5.2, make 3.81). I compile it against unixODBC.
./configure --prefix=/mingw --enable-static --enable-shared --with-tdsver=7.0 --with-unixodbc=/mingw
make
The compilation runs smoothly. However, the linking (i mean, when I run make) doesn't. The problem seems to be some undefined references such as: SQLGetPrivateProfileString and all the related ones.
Some other issues revolve around the following:
- sqltypes.h line 72: error: conflicting types for 'HWND'
line 93: error: two or more data types in declaration specifiers
line 117: error: confliction types for 'HINSTANCE'
- sql.h line 609: note: previous declaration of 'SQLColAttribute' was here
- odbc.c (in freeTDS); had to change the last two parameters in SQLColAttribute (????)
Another thing I noticed is that we're using 'wsock32' library, which, to my mind, is deprecated. (See lines 147 & 149 in configure.ac)
I apologize if this same question was already answered.
Thanks in advance.
Sergio.
----
Parliamentary ICT
Houses of Parliament
UK
http://www.parliament.uk/