libmysql.lib 和 mysqlclient.lib的区别

http://forums.mysql.com/read.php?168,197232,213432#msg-213432

Hi
I am using 5.0.51b and only dll which i could find in the installation directory libmysql.DLL only.
I assume running your application you need to distribute only libmysql.dll.

Though i can find both the lib files, in visual studio 2005 using C apis i only link to libmysql.lib. The program works fine.


This link further explains.
http://dev.mysql.com/doc/refman/5.0/en/windows-client-compiling.html

If i understand correctly:-
1. You need to use libmysql.lib if you intend to give the libmysql.DLL along with your application.
2. You need mysqlclient if you intend to distribute your application as standalone. The size of executable may increase.

Regards
Kavitesh Singh

原文地址:https://www.cnblogs.com/cy163/p/1577831.html