Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where's the source of mysqlclient.lib?

Tags:

c

mysql

libmysql

I have a C++ application which connects to a MySQL server.
It all works fine.

Currently it uses libmysql.dll.
At build time I link to libmysql.lib.

As far as I understand I can link to mysqlclient.lib instead and get rid of the dependency of libmysql.dll, i.e have the functionality embedded within my exe.

My question is: Where can I find the source to build mysqlclient.lib ?

When debugging the app when it's linked to mysqlclient.lib and stepping into mysql_library_init() for example the debugger (VC++ 2008) asks for the file "f:\build\mysql-5.0.67-winbuild\mysql-community-nt-5.0.67-build\libmysql\libmysql.c".

Note: libmysql.lib & mysqlclient.lib are included in the installation of MySQL.

like image 400
Poni Avatar asked Nov 06 '22 10:11

Poni


1 Answers

IIRC, it's a part of the MySQL source code: http://dev.mysql.com/downloads/mysql/#downloads

like image 52
Michael Spector Avatar answered Nov 09 '22 23:11

Michael Spector