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.


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to