From: Neil C. <nch...@uc...> - 2004-08-10 15:51:03
|
The code you have provided prevents the compiler error. But now I get the following error: /usr/bin/ld: cannot find -lmysqlclient I have installed the client and library for 4.1.3.0 -----Original Message----- From: Jonathan Wakely [mailto:jw...@mi...] Sent: Tuesday, August 10, 2004 8:25 AM To: Neil Chakrabarty Cc: mys...@li... Subject: RE: install problems I've downloaded the 4.1.3 sources and that fix won't work, SHUTDOWN_DEFAULT is an enum, not a macro (bah! who uses all-caps for enums?!) but something like this should work ok: #if MYSQL_VERSION_ID >= 40103 bool suc = !(mysql_shutdown(m_sharedptr_connection.obj(), SHUTDOWN_DEFAULT)); #else bool suc = !(mysql_shutdown(m_sharedptr_connection.obj())); #endif I *think* that's the right ID for 4.1.3, it's defined in the installed mysql_version.h jon |