[freetds] Compiling db-lib using Visual C++ 2005 Express

LacaK lacak at zoznam.sk
Thu Apr 3 04:41:14 EDT 2014


I have resolved these errors.
I have added
 - socketpair.c to "replacements"
 - #define HAVE_GETADDRINFO 1 in win32/config.h
 - add define _WIN32_WINNT=0x0400 to "replacements"
Is it okay?
If I prepare patch for VS C++ project files, do you will accept them ?
Thanks
-Laco.

> Hi,
> I am trying compile dblib.dll using Microsoft Visual C++ 2005 Express
> I use freetds-master/FreeTDS.sln as starting point (after time I have 
> added some missing files)
> But I still can not resolve these errors:
> tds.lib(mem.obj) : error LNK2001: unresolved external symbol 
> _tds_freeaddrinfo
> tds.lib(config.obj) : error LNK2001: unresolved external symbol 
> _tds_freeaddrinfo
> tds.lib(mem.obj) : error LNK2001: unresolved external symbol 
> _tds_socketpair
> tds.lib(config.obj) : error LNK2001: unresolved external symbol 
> _tds_getaddrinfo
> tds.lib(net.obj) : error LNK2001: unresolved external symbol 
> _tds_getnameinfo
> replacements.lib(win_mutex.obj) : error LNK2001: unresolved external 
> symbol _TryEnterCriticalSection
> Any suggestions?
> Thanks
> -Laco.
> _______________________________________________
> FreeTDS mailing list
> FreeTDS at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>



More information about the FreeTDS mailing list