just add
mysql_init(&csql);
before accessing the struct for any purpose.
Sure it helps (I made the same mistake, got the same result ;-)
Uwe
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 01, 2001 8:25 PM
Subject: Mysql C API Problem
On Sat, Jan 20, 2001 at 02:53:22PM -0500, Hlady, Brian wrote:
> I'm using the code found on page 245 - 247 of Paul Dubois' book, MySQL. When
> I attempt to make it
> under Code Crusader, I get the error found below.
>
> gcc -g -Wall -Werror -I- -I. -I/usr/local/include/mysql -c common.c -o
> co