Philip Spradling wrote: > I'm trying to link libmysqlclient into a C/C++ program using g++. > But I get the following errors: > > /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_uncompress': > my_compress.o(.text+0xaa): undefined reference to 'uncompress' > /usr/lib/mysql/libmysqlclient.a(my_compress.o): In function `my_compress_alloc': > my_compress.o(.text+0x13c): undefined reference to `compress' > > I really have no idea what to do here. I don't even know how to read >libmysqlclient.a. Can anyone clue me in? >
I seem to recall this problem on Solaris. I think you need to add the -lz to link the zlib library. Regards, -- David > -- > Philip Spradling > Unemployed C/C++/Java/SQL programmer > (Who do you know who could use an experienced, talented but overeducated programmer?) > [EMAIL PROTECTED] >http:[EMAIL PROTECTED]/ > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php