Re: 0.83.dev.20100507 and Visual Studio 2010

Harry Sfougaris <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
> 
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.