Yes I compiled my own version and I also submit request to FreeTDS developement team to add (3 lines of code) into base sources.
Hi Lacak2 (& everybody else),
Thanks for your efforts in writing the freetds wrapper. I've been playing around with building freetds. As you may have guessed, I almost certainly know less about C than you
I've got FreeTDS nightly build compiling on Debian but am running into trouble with a Windows build.
After some fiddling:
edit
win32/config.h
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
into
/* BigChimp: I don't seem to have inttypes.h here, so undefine it:
#undef HAVE_INTTYPES_H 1
*/
nmake -fNmakefile -nologo apps PLATFORM=Win32 CONFIGURATION=Debug
I managed to get a dblib .lib/.obj with Visual Studio and the nmakefile, but couldn't get a dll built:
cd /d D:\Cop\freetds\src\dblib\win32\debug
rem Link into dblib.dll; specify all required .obj files to resolve symbols etc
link /dll *.obj ..\..\..\..\*.obj ..\..\..\tds\win32\debug\*.obj ..\..\..\replacements\win32\debug\*.obj /OUT:dblib.dll /implib:db-lib.lib
Still get 25 unresolved symbols, mostly winsock
If I add:
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\WS2_32.Lib"
to the command line, I still get 3 unresolved symbols (SHGetMalloc, SHGetPathFromIDListA, SHGetSpecialFolderLocation).
Rather than keeping Googling and trying (and failing) perhaps one of the kind readers here have a solution
Thanks!