Skip to Content.
Sympa Menu

freetds - [freetds] FreeTDS and Windows

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Harry Sfougaris <hsfougaris AT gmail.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] FreeTDS and Windows
  • Date: Fri, 7 May 2010 14:21:16 +0300

Summary of my struggles so far (sorry for the new post, but it's not MinGW
and Windows anymore):

v0.82 (stable version):
Visual Studio 2010 (using \win32\msvc6\FreeTDS.dsw):
- FreeTDS compiles ok (with warnings).
- Trying to use the libraries in a console application, I have to add
WS2_32.lib and WSock32.lib in order to build.
- The application crashes when calling dbopen: tracing into this it's
the tds_open_socket call at line 428 of login.c

v0.83.20100122 (Nightly snapshot)
Visual Studio 2008 & 2010 (using FreeTDS.sln in the root of the source code):
- Does not compile at all.
- fakepoll.h seems to get included more than once, thus generating
macro redefinition warnings and an error for 'pollfd' : 'struct' type
redefinition
- net.c line 243 - I get #error One should be defined

Qt:
Adding the following
C:/windows/system32/msvcrt.dll \
C:/windows/system32/ntdll.dll
on top of WS2_32 and WSock32 solves the linker issues, but I still get the
application crash (like in Visual Studio).

Am I missing some other library I should be linking?
Currently I am at:
C:/freetds-0.82/lib-win/dblib.lib \
C:/freetds-0.82/lib-win/libTDS.lib \
C:/freetds-0.82/lib-win/WS2_32.lib \
C:/freetds-0.82/lib-win/WSock32.lib \
C:/windows/system32/msvcrt.dll \
C:/windows/system32/ntdll.dll

Maybe I am linking something that I shouldn't?

Maybe someone has a working copy of built libraries (dblib.lib + libTDS.lib)
for Windows he can share?

Thanks,

Harry Sfougaris










Archive powered by MHonArc 2.6.24.

Top of Page