Skip to Content.
Sympa Menu

freetds - RE: [freetds] freetds in win32

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Gad Hayisraeli" <gadh AT vmanage.com>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] freetds in win32
  • Date: Sun, 9 Feb 2003 10:18:46 +0200

i did not encounter any SQLULEN bug in my win32 compilation , from the 0.61
version snapshot of 4/2/03 ...

Gad

> -----Original Message-----
> From: freetds-admin AT lists.ibiblio.org
> [mailto:freetds-admin AT lists.ibiblio.org]On Behalf Of Steve Langasek
> Sent: ?u 08 oaoaao 2003 0:19?
> To: freetds AT lists.ibiblio.org
> Subject: Re: [freetds] freetds in win32
>
>
> On Fri, Feb 07, 2003 at 03:22:32PM -0500, Lowden, James K wrote:
> > > From: Frediano Ziglio [mailto:freddyz77 AT tin.it]
> > > Sent: February 6, 2003 3:12 PM
>
> > > > 4) SQLULEN is not defined on WIn32. This will take a small
> > > code change
>
> > > All fixed in CVS (BRANCH0_61 and MAIN).
>
> > I have unixodbc-2.0.11, and #4 is not fixed for me. What's the right fix?
> > I don't know under what circumstances we should define SQLULEN.
>
> > The message:
>
> > gcc -DHAVE_CONFIG_H -I. -I../../../src/odbc -I../../include
> > -I../../../include -I/usr/pkg/include -D_FREETDS_LIBRARY_SOURCE
> > -I/usr/pkg/include -DTDS50 -DUNIXODBC -Wall -Wstrict-prototypes -Wmissing-
> > prototypes -g -O2 -c
> > /usr/home/jklowden/projects/freetds/build/src/odbc/../../../src/odbc/odbc.c
> > -Wp,-MD,.deps/odbc.TPlo -fPIC -DPIC -o .libs/odbc.o
> > /usr/home/jklowden/projects/freetds/build/src/odbc/../../../src/odbc/odbc.c:
> > In function `SQLSetEnvAttr':
> > /usr/home/jklowden/projects/freetds/build/src/odbc/../../../src/odbc/odbc.c:
> > 397: `SQLULEN' undeclared (first use in this function)
>
> Ok, apparently this isn't as portable as I thought it was. If new
> versions of unixodbc are the only place this type appears, perhaps a
> portable fix would be
>
> #ifndef SQLULEN
> #define SQLULEN SQLUINTEGER
> #endif
>
> ?
>
> --
> Steve Langasek
> postmodern programmer
>







Archive powered by MHonArc 2.6.24.

Top of Page