Skip to Content.
Sympa Menu

freetds - RE: [freetds] compile problem between tds.h and sybdb.h

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] compile problem between tds.h and sybdb.h
  • Date: Fri, 5 Nov 2004 16:28:20 +0100

> On Friday 05 November 2004 15:15, ZIGLIO, Frediano, VF-IT wrote:
> > > hi,
> > >
> > > i was working on the last stable vesion of freetds, version
> > > 0.62.4 and my
> > > compiles were ok, but when i took a recent snapshot and
> > > installed and compile
> > > i get the following error, im sure someone may have come
> > > across this problem
> > > before, any help would be great.
> > >
> > > gcc -c gprs_db.c
> > > In file included from gprs.h:24,
> > > from gprs_db.c:1:
> > > /freetds-0.63.dev.20041029/include/tds.h:354: error:
> > > conflicting types for
> > > `SYBCHAR'
> > > /usr/local/include/sybdb.h:152: error: previous declaration
> > > of `SYBCHAR'
> > > /freetds-0.63.dev.20041029/include/tds.h:356: error:
> > > conflicting types for
> > > `SYBVARCHAR'
> > > /usr/local/include/sybdb.h:154: error: previous declaration
> > > of `SYBVARCHAR'
> >
> > Do not include sybdb.h and tds.h...
> >
> > freddy77
>
> think i need sybdb.h and tds.h cause im using dblib and connection
pooling,
> maybe im wrong?

I don't understand the reason. As a workaround uou can include tds.h
before sybdb.h and define _FREETDS_LIBRARY_SOURCE. This method however
it's not encouraged...

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page