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
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
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]
--
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 the end my test program was limited to
[EMAIL PROTECTED] writes:
> Hello,
>
> When using Visual C++ or Delorie DJGPP (under windows 2000) compilers and compiling
>the following example:
>
> #include
> #include
> #include
> #include
> #include
>
> int main()
> {
> Connection con("stw");
> return 0;
> }
>
>
>
> I
Hello,
When using Visual C++ or Delorie DJGPP (under windows 2000) compilers and compiling
the following example:
#include
#include
#include
#include
#include
int main()
{
Connection con("stw");
return 0;
}
I always get the following errors related to the mysql_com.h he
Hi,
Sorry for my stupid question,
I have probleme when i use C API : LinK Problem.
MY COMMAND :
bash>gcc -o fic.ex NA_PEC_Sin.c
-L/usr/local/REP-MYSQL/mysql-3.23.32-pc-linux-gnu-i686/lib
-lmysqlclient
(the 3 lignes represent 1 ligne for my command )
ERROR MESSAGE :