Sorry to disturb you, i have resolved my problem by using other mysql headers!
Selon [EMAIL PROTECTED]:
>
>
> Hi all,
>
> i try to use the C API but i get a segmentation fault...
>
> my code looks like :
>
> MYSQL mysql;
> if( ! mysql_init(&mysql) )
>exit(0);
> if( ! mysql_real_connect(&mysql
kenneth johansen writes:
> hello everybody.
> Ive been working with perl and mysql for some time, but recently i had
> to move over
> to C and as such i wrote a small test program, just to get to know the
> mysql C API.
> Well, things didnt go as i thought. i kept getting linking problems
> and in
kenneth johansen wrote:
}
> +
>
> i compile this with:
> gcc -I/usr/local/mysql/include/ -L/usr/local/mysql/lib/ program.c
> -lmysqlclient
>
add -lz
--
Gerald L. Clark
[EMAIL PROTECTED]
--