freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Frediano Ziglio <freddy77 AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] [0.95rc2] Unit Tests / Unicode
- Date: Fri, 15 May 2015 18:53:47 +0100
2015-05-15 8:49 GMT+01:00 Sergio NNX <sfhacker AT hotmail.com>:
> CC long_error.o
> In file included from
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/
> sql.h:19:0,
> from common.h:24,
> from long_error.c:3:
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/sqltypes.h:87:29:
> erro
> r: conflicting types for 'TCHAR'
> In file included from
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/
> windef.h:239:0,
> from
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/
> windows.h:60,
> from
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/
> winsock2.h:40,
> from
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/
> ws2tcpip.h:41,
> from common.h:3,
> from long_error.c:3:
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/winnt.h:136:15:
> note:
> previous declaration of 'TCHAR' was here
> In file included from
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/
> sql.h:19:0,
> from common.h:24,
> from long_error.c:3:
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/sqltypes.h:111:29:
> err
> or: conflicting types for 'LPTSTR'
> In file included from
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/
> windef.h:239:0,
> from
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/
> windows.h:60,
> from
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/
> winsock2.h:40,
> from
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/
> ws2tcpip.h:41,
> from common.h:3,
> from long_error.c:3:
> c:\mingw\bin\../lib/gcc/mingw32/4.7.2/../../../../include/winnt.h:154:30:
> note:
> previous declaration of 'LPTSTR' was here
> make[1]: *** [long_error.o] Error 1
>
This looks like an header but in your MingW.
Try including windows.h before winsock2.h.
Or sqlucode.h before sql.h.
On Ubuntu I have a cross MingW with gcc 4.8.2 is is working correctly.
Also Visual Studio 8.0 has no problems compiling it.
Frediano
-
Re: [freetds] [0.95rc2] Preliminary test results
, (continued)
- Re: [freetds] [0.95rc2] Preliminary test results, Frediano Ziglio, 05/12/2015
- Re: [freetds] [0.95rc2] Preliminary test results, Frediano Ziglio, 05/12/2015
- [freetds] [0.95rc2][Windows] Deployment, Sergio NNX, 05/13/2015
- Re: [freetds] [0.95rc2][Windows] Deployment, Frediano Ziglio, 05/14/2015
- [freetds] [0.95rc2][Windows] Unit Tests, Sergio NNX, 05/14/2015
- Re: [freetds] [0.95rc2][Windows] Unit Tests, Frediano Ziglio, 05/14/2015
- Re: [freetds] [0.95rc2][Windows] Unit Tests, Sergio NNX, 05/14/2015
- Re: [freetds] [0.95rc2][Windows] Unit Tests, Frediano Ziglio, 05/14/2015
- [freetds] [0.95rc2][Windows] Unit Tests / Next release, Sergio NNX, 05/15/2015
- [freetds] [0.95rc2] Unit Tests / Unicode, Sergio NNX, 05/15/2015
- Re: [freetds] [0.95rc2] Unit Tests / Unicode, Frediano Ziglio, 05/15/2015
- Re: [freetds] [0.95rc2] Unit Tests / Unicode, Frediano Ziglio, 05/16/2015
Archive powered by MHonArc 2.6.24.