Re: Problem with C API

2005-07-26 Thread picoman
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

Problem with C API

2005-07-26 Thread picoman
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,"localhost","user","xxx","",3306,NULL,0) ) exit(0); if( mysql_select_db(&mysql, nomBdd) != 0 ) exit(0); mysql_query(&m