From: Neil C. <nch...@uc...> - 2004-08-10 23:06:17
|
Sorry to keep bothering, but I can't figure this error out when making the library: /bin/sh ../libtool --mode=link g++ -I/usr/share/mysql/include -g -O2 -o libmysqlcppapi-1.9.la -rpath /usr/local/lib -version-info 4:0:0 -release 1.9 ColData.lo Connection.lo Allocator_Connection.lo string_util.lo datetime/libdatetime.la exceptions/libexceptions.la fields/libfields.la query/libquery.la query_results/libquery_results.la row/librow.la -lnsl -lintl -L/usr/share/mysql/lib/mysql -lmysqlclient -L/usr/share/lib/mysql -lmysqlclient g++ -shared -nostdlib /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../crti.o /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/crtbeginS.o .libs/ColData.o .libs/Connection.o .libs/Allocator_Connection.o .libs/string_util.o -Wl,--whole-archive datetime/.libs/libdatetime.a exceptions/.libs/libexceptions.a fields/.libs/libfields.a query/.libs/libquery.a query_results/.libs/libquery_results.a row/.libs/librow.a -Wl,--no-whole-archive -lnsl /usr/lib/libintl.so -L/usr/share/mysql/lib/mysql -L/usr/share/lib/mysql -lmysqlclient -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2 -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/crtendS.o /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../crtn.o -Wl,-soname -Wl,libmysqlcppapi-1.9-1.9.so.4 -o .libs/libmysqlcppapi-1.9-1.9.so.4.0.0 /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make[3]: *** [libmysqlcppapi-1.9.la] Error 1 make[3]: Leaving directory `/home/creus/mysqlcppapi-1.9.3/mysqlcppapi' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/creus/mysqlcppapi-1.9.3/mysqlcppapi' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/creus/mysqlcppapi-1.9.3' make: *** [all] Error 2 -----Original Message----- From: Jonathan Wakely [mailto:co...@co...] Sent: Tuesday, August 10, 2004 10:09 AM To: Neil Chakrabarty Cc: mys...@li... Subject: Re: [Mysqlcppapi-main] RE: install problems (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 |