freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Compiling db-lib using Visual C++ 2005 Express
- From: LacaK <lacak AT zoznam.sk>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Compiling db-lib using Visual C++ 2005 Express
- Date: Tue, 27 May 2014 15:55:57 +0200
Hi,
here are 3 patches for Visual Studio project files, which adds missing files.
I have tested it under Win32/Visual C++ 2005 Express.
To successfuly compile there must be done also other changes for example add into "replacements" / PreprocessorDefinitions - _WIN32_WINNT=0x0400
I have not added it to patch because I do not know if it is needed only on Win32 platform or also x64 platform ?
I attach also patch for win32/config.h with changes required to compile with Visual C++ 2005
(but I do not know if they are OK also for other compilers under Win32)
Thanks
-Laco.
Sure!
Frediano
2014-04-03 9:41 GMT+01:00 LacaK <lacak AT zoznam.sk>:
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.
--- TDS.vcproj.ori Tue May 27 10:25:16 2014
+++ TDS.vcproj Tue May 27 15:23:52 2014
@@ -441,6 +441,10 @@
>
</File>
<File
+ RelativePath=".\sspi.c"
+ >
+ </File>
+ <File
RelativePath=".\write.c"
>
</File>
--- replacements.vcproj.ori Tue May 27 10:25:16 2014
+++ replacements.vcproj Tue May 27 15:34:12 2014
@@ -349,6 +349,10 @@
>
</File>
<File
+ RelativePath=".\socketpair.c"
+ >
+ </File>
+ <File
RelativePath=".\strlcat.c"
>
</File>
@@ -362,6 +366,10 @@
</File>
<File
RelativePath=".\vasprintf.c"
+ >
+ </File>
+ <File
+ RelativePath=".\win_mutex.c"
>
</File>
</Filter>
--- db-lib.vcproj.ori Tue May 27 10:25:16 2014
+++ db-lib.vcproj Tue May 27 15:36:36 2014
@@ -301,6 +301,10 @@
>
</File>
<File
+ RelativePath=".\dbpivot.c"
+ >
+ </File>
+ <File
RelativePath=".\dbutil.c"
>
</File>
-
Re: [freetds] Compiling db-lib using Visual C++ 2005 Express,
LacaK, 05/27/2014
-
Re: [freetds] Compiling db-lib using Visual C++ 2005 Express,
Frediano Ziglio, 05/27/2014
-
Re: [freetds] Compiling db-lib using Visual C++ 2005 Express,
LacaK, 05/28/2014
-
Re: [freetds] Compiling db-lib using Visual C++ 2005 Express,
LacaK, 05/29/2014
-
Re: [freetds] Compiling db-lib using Visual C++ 2005 Express,
Frediano Ziglio, 05/29/2014
- Re: [freetds] Compiling db-lib using Visual C++ 2005 Express, LacaK, 05/30/2014
-
Re: [freetds] Compiling db-lib using Visual C++ 2005 Express,
Frediano Ziglio, 05/29/2014
-
Re: [freetds] Compiling db-lib using Visual C++ 2005 Express,
LacaK, 05/29/2014
-
Re: [freetds] Compiling db-lib using Visual C++ 2005 Express,
LacaK, 05/28/2014
-
Re: [freetds] Compiling db-lib using Visual C++ 2005 Express,
Frediano Ziglio, 05/27/2014
Archive powered by MHonArc 2.6.24.