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
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步