Most likely this will solve your problem. This comes right from the mysql website documentation. It is for the C API but I'm sure the same concepts go for C++ as well. If this doesn't work provide more info on the program you are using for coding and the errors you are getting. Thanks.
http://www.mysql.com/doc/B/u/Building_clients.html 8.4.7 Building Client Programs If you compile MySQL clients that you've written yourself or that you obtain from a third-party, they must be linked using the -lmysqlclient -lz option on the link command. You may also need to specify a -L option to tell the linker where to find the library. For example, if the library is installed in `/usr/local/mysql/lib', use -L/usr/local/mysql/lib -lmysqlclient -lz on the link command. For clients that use MySQL header files, you may need to specify a -I option when you compile them (for example, -I/usr/local/mysql/include), so the compiler can find the header files. ---------- Original Message ---------------------------------- From: "Marco Coletta -TV" <[EMAIL PROTECTED]> Reply-To: "Marco Coletta -TV" <[EMAIL PROTECTED]> Date: Thu, 11 Jul 2002 15:41:02 +0200 >I need to use the C++ API for mysql under a Linux system. >I compiled the tarball downloaded from mysql.com/Downloads but >I get several errors during compilation of C++ code. >Can anyone supply some information. >Thanks. > > >--------------------------------------------------------------------- >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