From: Jonathan W. <co...@co...> - 2004-08-10 18:40:25
|
(back on my usual email address now) On Tue, Aug 10, 2004 at 09:50:34AM -0600, Neil Chakrabarty wrote: > The code you have provided prevents the compiler error. Cool, thanks for testing it. I'll commit that this evening. > 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 Then you need to tell the compiler/linker where to find libmysqlclient.so with a -L switch. It's often installed in /usr/local/lib/mysql or /usr/local/mysql/lib jon > > -----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 > > > > > > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Mysqlcppapi-main mailing list > Mys...@li... > https://lists.sourceforge.net/lists/listinfo/mysqlcppapi-main -- "Political satire became obsolete when Henry Kissinger was awarded the Nobel Prize." - Tom Lehrer |