7

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.

Poni
  • 11,061
  • 25
  • 80
  • 121
  • Someone please tell me why down-vote this question. Written very clearly, and very programming-related. – Poni Jul 30 '10 at 23:33

1 Answers1

3

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

Michael Spector
  • 36,723
  • 6
  • 60
  • 88
  • Hi and thanks! I tried the package mysql-noinstall-5.1.49-win32.zip (115MB) yet again no source files except for headers. Any idea? – Poni Jul 30 '10 at 17:45
  • You've chosen the wrong package. The correct link is: http://dev.mysql.com/downloads/mirror.php?id=391854 – Michael Spector Jul 30 '10 at 19:09
  • Tip: There on https://dev.mysql.com/downloads/mysql/ in the "Select operating system" picker select "Source code". – sp4c38 Feb 27 '21 at 16:30