freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010
- From: Paul Thurston <pthurston AT netegrate.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010
- Date: Sat, 8 May 2010 10:40:44 -0700
Harry:
By the way, I can reproduce your compilation time error with code branch
v.0.83.dev.20100508.
This build works just find under a Linux, but unfortunately, some of the
Macros defined in the FakePoll header conflict with pre-existing Macros in
the Winsock2 header.
The section in fakepoll.h probably needs to be wrapped in a #if
!defined(_WIN32) #endif to protect against such conflicts.
It looks like the code belongs to freddy77, so we might ask Frediano Ziglio
to take a look at the problem.
Thanks,
Paul
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Harry Sfougaris
Sent: Saturday, May 08, 2010 4:21 AM
To: FreeTDS Development Group
Subject: [freetds] 0.83.dev.20100507 and Visual Studio 2010
The supplier Visual Studio solution file still doesn't compile.
When trying to build, I get the following errors:
Error 11 error C2011: 'pollfd' : 'struct' type redefinition
C:\freetds-0.83.dev.20100507\include\fakepoll.h 50 1 TDS
Error 22 error C2011: 'pollfd' : 'struct' type redefinition
C:\freetds-0.83.dev.20100507\include\fakepoll.h 50 1 TDS
Error 35 error C2011: 'pollfd' : 'struct' type redefinition
C:\freetds-0.83.dev.20100507\include\fakepoll.h 50 1 TDS
Error 46 error C2011: 'pollfd' : 'struct' type redefinition
C:\freetds-0.83.dev.20100507\include\fakepoll.h 50 1 TDS
Error 72 error C2011: 'pollfd' : 'struct' type redefinition
C:\freetds-0.83.dev.20100507\include\fakepoll.h 50 1 TDS
Error 73 error C1189: #error : One should be defined
C:\freetds-0.83.dev.20100507\src\tds\net.c 243 1 TDS
Error 84 error C2011: 'pollfd' : 'struct' type redefinition
C:\freetds-0.83.dev.20100507\include\fakepoll.h 50 1 TDS
Error 95 error C2011: 'pollfd' : 'struct' type redefinition
C:\freetds-0.83.dev.20100507\include\fakepoll.h 50 1 TDS
Error 109 error C2011: 'pollfd' : 'struct' type redefinition
C:\freetds-0.83.dev.20100507\include\fakepoll.h 50 1 TDS
Error 120 error C2011: 'pollfd' : 'struct' type redefinition
C:\freetds-0.83.dev.20100507\include\fakepoll.h 50 1 TDS
Error 131 error C2011: 'pollfd' : 'struct' type redefinition
C:\freetds-0.83.dev.20100507\include\fakepoll.h 50 1 TDS
Error 142 error C2011: 'pollfd' : 'struct' type redefinition
C:\freetds-0.83.dev.20100507\include\fakepoll.h 50 1 TDS
147 IntelliSense: argument of type "const void *" is incompatible
with parameter of type "const char *"
c:\freetds-0.83.dev.20100507\src\tds\net.c 233 47 TDS
148 IntelliSense: #error directive: One should be defined
c:\freetds-0.83.dev.20100507\src\tds\net.c 243 2 TDS
149 IntelliSense: return value type does not match the function type
c:\freetds-0.83.dev.20100507\src\tds\net.c 324 9 TDS
I am trying to compile under Windows 7 64-bit.
If I add HAVE_POLL to my defines (i don't know if that's correct), the
redefinition errors go away, but the others remain, ie.
Error 73 error C1189: #error : One should be defined
C:\freetds-0.83.dev.20100507\src\tds\net.c 243 1 TDS
147 IntelliSense: argument of type "const void *" is incompatible
with parameter of type "const char *"
c:\freetds-0.83.dev.20100507\src\tds\net.c 233 47 TDS
148 IntelliSense: #error directive: One should be defined
c:\freetds-0.83.dev.20100507\src\tds\net.c 243 2 TDS
149 IntelliSense: return value type does not match the function type
c:\freetds-0.83.dev.20100507\src\tds\net.c 324 9 TDS
The "one should be defined" error, I don't know how to handle. The code is
the following, and I don't know what should be defined for my platform.
#if defined(USE_NODELAY) || defined(USE_MSGMORE)
setsockopt(tds->s, SOL_TCP, TCP_NODELAY, (const void *) &len,
sizeof(len)); #elif defined(USE_CORK)
if (setsockopt(tds->s, SOL_TCP, TCP_CORK, (const void *) &len,
sizeof(len)) < 0)
setsockopt(tds->s, SOL_TCP, TCP_NODELAY, (const void *) &len,
sizeof(len)); #else #error One should be defined #endif
Thanks,
Harry Sfougaris
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org<mailto:FreeTDS AT lists.ibiblio.org>
http://lists.ibiblio.org/mailman/listinfo/freetds
-
Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010
, (continued)
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Harry Sfougaris, 05/09/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/09/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Harry Sfougaris, 05/09/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/10/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Harry Sfougaris, 05/10/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/10/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Frediano Ziglio, 05/11/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Harry Sfougaris, 05/11/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Michal Seliga, 05/11/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Paul Thurston, 05/11/2010
- Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010, Harry Sfougaris, 05/08/2010
Archive powered by MHonArc 2.6.24.