Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL++ - Programming with the C++ API to MySQL
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
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.