Skip to Content.
Sympa Menu

freetds - [freetds] Having problem compiling dblib

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Gal Rubinstein <galrub AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: [freetds] Having problem compiling dblib
  • Date: Wed, 11 Mar 2009 09:56:00 +0200

Using Dev-C++/MinGW32/XP , here is the trace:

[trace]

C:\Gal\tmp\freetds-0.82\src\dblib>gcc.exe -c dblib.c -o dblib.o
-I"C:/MinGW/include" -I"C:/
freetds-0.82/include" -I"C:/freetds-0.82/win32" -DBUILDING_DLL=1
-DHAVE_CONFIG_H -DDLL_EXPORT
In file included from C:/Gal/tmp/freetds-0.82/include/sybfront.h:23,
from dblib.c:68:
C:/Gal/tmp/freetds-0.82/include/sybdb.h:151: error: redeclaration of
enumerator `SYBCHAR'
C:/Gal/tmp/freetds-0.82/include/tds.h:423: error: previous definition of
'SYBCHAR' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:153: error: redeclaration of
enumerator `SYBVARCHAR'
C:/Gal/tmp/freetds-0.82/include/tds.h:425: error: previous definition of
'SYBVARCHAR' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:155: error: redeclaration of
enumerator `SYBINTN'
C:/Gal/tmp/freetds-0.82/include/tds.h:427: error: previous definition of
'SYBINTN' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:157: error: redeclaration of
enumerator `SYBINT1'
C:/Gal/tmp/freetds-0.82/include/tds.h:429: error: previous definition of
'SYBINT1' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:159: error: redeclaration of
enumerator `SYBINT2'
C:/Gal/tmp/freetds-0.82/include/tds.h:431: error: previous definition of
'SYBINT2' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:161: error: redeclaration of
enumerator `SYBINT4'
C:/Gal/tmp/freetds-0.82/include/tds.h:433: error: previous definition of
'SYBINT4' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:163: error: redeclaration of
enumerator `SYBINT8'
C:/Gal/tmp/freetds-0.82/include/tds.h:479: error: previous definition of
'SYBINT8' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:165: error: redeclaration of
enumerator `SYBFLT8'
C:/Gal/tmp/freetds-0.82/include/tds.h:435: error: previous definition of
'SYBFLT8' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:167: error: redeclaration of
enumerator `SYBDATETIME'
C:/Gal/tmp/freetds-0.82/include/tds.h:437: error: previous definition of
'SYBDATETIME' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:169: error: redeclaration of
enumerator `SYBBIT'
C:/Gal/tmp/freetds-0.82/include/tds.h:439: error: previous definition of
'SYBBIT' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:171: error: redeclaration of
enumerator `SYBTEXT'
C:/Gal/tmp/freetds-0.82/include/tds.h:441: error: previous definition of
'SYBTEXT' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:173: error: redeclaration of
enumerator `SYBIMAGE'
C:/Gal/tmp/freetds-0.82/include/tds.h:445: error: previous definition of
'SYBIMAGE' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:175: error: redeclaration of
enumerator `SYBMONEY4'
C:/Gal/tmp/freetds-0.82/include/tds.h:447: error: previous definition of
'SYBMONEY4' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:177: error: redeclaration of
enumerator `SYBMONEY'
C:/Gal/tmp/freetds-0.82/include/tds.h:449: error: previous definition of
'SYBMONEY' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:179: error: redeclaration of
enumerator `SYBDATETIME4'
C:/Gal/tmp/freetds-0.82/include/tds.h:451: error: previous definition of
'SYBDATETIME4' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:181: error: redeclaration of
enumerator `SYBREAL'
C:/Gal/tmp/freetds-0.82/include/tds.h:453: error: previous definition of
'SYBREAL' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:183: error: redeclaration of
enumerator `SYBBINARY'
C:/Gal/tmp/freetds-0.82/include/tds.h:455: error: previous definition of
'SYBBINARY' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:185: error: redeclaration of
enumerator `SYBVARBINARY'
C:/Gal/tmp/freetds-0.82/include/tds.h:459: error: previous definition of
'SYBVARBINARY' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:187: error: redeclaration of
enumerator `SYBNUMERIC'
C:/Gal/tmp/freetds-0.82/include/tds.h:463: error: previous definition of
'SYBNUMERIC' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:189: error: redeclaration of
enumerator `SYBDECIMAL'
C:/Gal/tmp/freetds-0.82/include/tds.h:465: error: previous definition of
'SYBDECIMAL' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:191: error: redeclaration of
enumerator `SYBFLTN'
C:/Gal/tmp/freetds-0.82/include/tds.h:467: error: previous definition of
'SYBFLTN' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:193: error: redeclaration of
enumerator `SYBMONEYN'
C:/Gal/tmp/freetds-0.82/include/tds.h:469: error: previous definition of
'SYBMONEYN' was here
C:/Gal/tmp/freetds-0.82/include/sybdb.h:197: error: redeclaration of
enumerator `SYBDATETIMN'
C:/Gal/tmp/freetds-0.82/include/tds.h:471: error: previous definition of
'SYBDATETIMN' was here
dblib.c:79: error: syntax error before string constant
dblib.c:79: warning: data definition has no type or storage class
dblib.c: In function `dbversion':
dblib.c:6512: error: `rcsid_var' undeclared (first use in this function)
dblib.c:6512: error: (Each undeclared identifier is reported only once
dblib.c:6512: error: for each function it appears in.)

[/trace]

what flags should I pass in order to make it work?

THX




Archive powered by MHonArc 2.6.24.

Top of Page