Re: Segmentation fault error accrued when gcc -o test -L/usr/lib/mysql -lmysqlclient test.c

2006-07-24 Thread Chris White
On Sunday 23 July 2006 10:26 pm, ali asghar torabi parizy wrote: > while ((row = mysql_fetch_row(res_set)) != NULL) { while (row = mysql_fetch_row(res_set)) would do the same thing, NULL check shouldn't be necessary. > for (i=0; i

Segmentation fault error accrued when gcc -o test -L/usr/lib/mysql -lmysqlclient test.c

2006-07-23 Thread ali asghar torabi parizy
hi to all. thanks luiz and mike for response. my code is compiled when i use -lmysqlclient option and executable file is now exist but when i try to execute this file it prompts "Segmentation fault" .what's the meaning of it and what i have to do? ## gcc -o test -

gcc -o test -L/usr/lib/mysql -lmysqlclient test.c

2006-07-23 Thread ali asghar torabi parizy
hi to all. thanks luiz and mike for response. my code is compiled when i use -lmysqlclient option and executable file is now exist but when i try to execute this file it prompts "segmentation error" .what's the meaning of it and what i have to do? The code is as fillows: *