mysql.lib

hi all.
i wanna to connect to sql database, so i need mysql.lib, right?
where can i get it?
Yes, you need the MYSQL development files. you will also need mysql.h too. You can find all these on the MYSQL website. If you are using C++ however, I would recommend using MYSQL++ as this is a much more powerful API (to use MYSQL++ you will also need to download the C MYSQL API).


MYSQL C API - http://dev.mysql.com/downloads/connector/c/6.0.html
MYSQL++ C++ API - http://tangentsoft.net/mysql++/

Matt
thanks! I'll try
i've downloaded.
my prog passes linking, but, i guess, smth wrong with libraries

main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual bool __thiscall mysqlpp::Connection::connect(char const *,char const *,char const *,char const *,unsigned int)" (__imp_?connect@Connection@mysqlpp@@UAE_NPBD000I@Z) referenced in function _main
i did
#pragma comment(lib, "C:\\MySQL++\\3.0.9\\lib\\libmysql.lib");
#pragma comment(lib, "C:\\MySQL++\\3.0.9\\lib\\mysqlclient.lib");

what else?
People!
Last edited on
#pragma comment(lib, "C:\\MySQL++\\3.0.9\\lib\\libmysql.lib")
#pragma comment(lib, "C:\\MySQL++\\3.0.9\\lib\\mysqlclient.lib")
#pragma comment(lib, "delayimp")

and add to compiler's options /DELAYLOAD option, but

LINK : warning LNK4199: /DELAYLOAD:C:\MySQL++\3.0.9\lib\libmysql.dll ignored; no imports found from C:\MySQL++\3.0.9\lib\libmysql.dll

Help, please
Tell me, i need to do this!

main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall mysqlpp::Connection::~Connection(void)" (__imp_??1Connection@mysqlpp@@UAE@XZ)


what should i do?
Topic archived. No new replies allowed.