  | |  | MyODBC and Embedded Server | MyODBC and Embedded Server 2005-06-23 - By paolo ruffolo
Back Hello, I'm trying to build up a version of MyODBC with the embedded library (libmysqld) instead of mysqlclient.
I'm using VC++ 6.0 on Windows 2000 System. I'm using the latest source code of MyODBC (3.51.11) and the version of libmysqld contained in Mysql 4.1.11.
In a previous post Venu said: " It should be straight forward to integrate the MyODBC code with embedded version of server" But with a simple substitution I got the following linker errors:
-- ---- ---- ---- --Configuration: myodbc35 - Win32 Release-- ---- ---- ---- -- Compiling resources... Compiling... catalog.c connect.c cursor.c dll.c error.c execute.c handle.c info.c misc.c myodbc3.c MYODBCUtilReadDataSourceStr.c options.c prepare.c results.c transact.c utility.c Linking... Creating library Release/myodbc3.lib and object Release/myodbc3.exp cursor.obj : error LNK2001: unresolved external symbol _dynstr_append cursor.obj : error LNK2001: unresolved external symbol _dynstr_append_mem cursor.obj : error LNK2001: unresolved external symbol _dynstr_free execute.obj : error LNK2001: unresolved external symbol _dynstr_free cursor.obj : error LNK2001: unresolved external symbol _init_dynamic_string execute.obj : error LNK2001: unresolved external symbol _init_dynamic_string execute.obj : error LNK2001: unresolved external symbol _longlong2str execute.obj : error LNK2001: unresolved external symbol _strnlen results.obj : error LNK2001: unresolved external symbol _strtoull results.obj : error LNK2001: unresolved external symbol _strtoll utility.obj : error LNK2001: unresolved external symbol _dynstr_realloc Release/myodbc3.dll : fatal error LNK1120: 9 unresolved externals Error executing link.exe.
myodbc3.dll - 12 error(s), 0 warning(s)
I tried to include the source files related to the undefined symbols but I'm still getting an unresolved symbol and I can't figure out how to solve It. Here are the details (I use * to mark the added files):
-- ---- ---- ---- --Configuration: myodbc35 - Win32 Release-- ---- ---- ---- -- Compiling resources... Compiling... catalog.c connect.c cursor.c dll.c error.c execute.c handle.c info.c misc.c myodbc3.c MYODBCUtilReadDataSourceStr.c options.c prepare.c results.c transact.c utility.c (*)string.c (*)longlong2str.c (*)strtoull.c (*)strtoll.c (*)strnlen.c Linking... Creating library Release/myodbc3.lib and object Release/myodbc3.exp strtoull.obj : error LNK2001: unresolved external symbol __my_thread_var strtoll.obj : error LNK2001: unresolved external symbol __my_thread_var Release/myodbc3.dll : fatal error LNK1120: 1 unresolved externals Error executing link.exe.
myodbc3.dll - 3 error(s), 0 warning(s)
What I'm doing wrong? How to procede? Can someone help me?
Thank's in advance.
paolo
-- MySQL ODBC Mailing List For list archives: http://lists.mysql.com/myodbc To unsubscribe: http://lists.mysql.com/myodbc?unsub=mysql@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |