I have a slight variation on that for my Solaris 2.8 machine... >g++ -m64 -o check check.cpp -L/usr/local/mysql/lib -L/usr/local/lib/sparcv9/ -lmysqlclient -lsocket -lnsl -lm // this part works fine
When running 'check' I get ... >check ld.so.1: ./check: fatal: libstdc++.so.5: open failed: No such file or directory Killed ... even though libstdc++.so.5 is symlinked to libstdc++.so.5.0.2 in /usr/local/lib/sparcv9 My apologies for keeping on bothering you!! Regards Andy On Tue, 2005-01-11 at 16:53 +0100, Jose Miguel Pérez wrote: > Hi Andy! > > > but I still get the Bus Error message with the following code... > > int main(char **args) { > > MYSQL_RES *result; > > MYSQL_ROW row; > > MYSQL *connection, mysql; > > int state; > > int PORTNUM = 3306; > [...] > > Andy, I have copied and pasted your code into a fresh new check.cpp file > and it worked for me (obviously changing the user and password data from the > connection string). > > I am using Linux Red Hat 9.0 with 2.6.8 Kernel. This is what I used to > compile: > > g++ -O3 -c -o check.o check.cpp > g++ -o check ppp.o -lmysqlclient_r -lz > > It worked fine, maybe you should try to compile with debug options and > give gdb a try. > > Cheers, > Jose Miguel. > -- perl -e "print qq^bIG VeRN ! ^^qq^#'#Yv#=<D+ ^" This e-mail is private and may be confidential and is for the intended recipient only. If misdirected, please notify us by telephone and confirm that it has been deleted from your system and any copies destroyed. If you are not the intended recipient you are strictly prohibited from using, printing, copying, distributing or disseminating this e-mail or any information contained in it. We use reasonable endeavours to virus scan all e-mails leaving the Company but no warranty is given that this e-mail and any attachments are virus free. You should undertake your own virus checking. The right to monitor e-mail communications through our network is reserved by us. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]