Skip to Content.
Sympa Menu

freetds - [freetds] freeTDS under MinGW

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Sergio NNX <sfhacker AT hotmail.com>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: [freetds] freeTDS under MinGW
  • Date: Sat, 11 Jun 2011 15:24:45 +0100


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/






Archive powered by MHonArc 2.6.24.

Top of Page