freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010
- From: Harry Sfougaris <hsfougaris AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010
- Date: Sun, 9 May 2010 00:40:23 +0300
>
> The section in fakepoll.h probably needs to be wrapped in a #if
> !defined(_WIN32) #endif to protect against such conflicts.
>
Regarding 0.83.20100507:
-------------------------------------
adding your suggested #define seems to solve the problem.
Regarding the issue with "one must be defined" in net.c, I think I have
tracked it down to this:
There are various #if defined( OS) where it is decided whether USE_MSGMORE or
USE_CORK or USE_NODELAY will de defined.
There is no #if for Win32, so it none of them ends up defined.
If I add a #define USE_NODELAY 1, and then I get another error about SOL_TCP
not being defined.
This is only defined if IPPROTO_TCP is not defined
#if !defined(SOL_TCP) && defined(IPPROTO_TCP)
#define SOL_TCP IPPROTO_TCP
#endif
which it is not.
So I add a #define IPPROTO_TCP 1
Also, in dbopen.c, I get the error:
Error 8 error C1083: Cannot open include file:
'../../include/sybdb.h': No such file or directory
C:\freetds-0.83.dev.20100507\src\dblib\dbopen.c 25 1 db-lib
Changing the #include from having <../../include/sybdb.h> to
"../../include/sybdb.h"
This builds the two libraries ok (there are only 2 in the project db-lib and
tds (the names have changes)).
However when trying to build my test app, I get linker errors:
Error 23 error LNK2001: unresolved external symbol tds_win_mutex_lock
C:\Users\harry.MISSIRIAN\Desktop\kklkl\kklkl\db-lib.lib(log.obj)
kklkl
Error 24 error LNK2001: unresolved external symbol tds_sspi_get_auth
C:\Users\harry.MISSIRIAN\Desktop\kklkl\kklkl\db-lib.lib(login.obj)
kklkl
-
Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010
, (continued)
- 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.