List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:November 8 2002 4:54pm
Subject:Re: accessing mysql from C
View as plain text  
At 22:04 +0530 11/8/02, Rahul Amaram-RollNo.2000086 wrote:
>whenever i try to execute a C file which uses the mysql_connect method
>i get the following error.

mysql_connect() is obsolete.  Use mysql_real_connect() instead.

>
>
>undefined reference to mysql_connect
>
>
>Please note that I have tried the following options.
>
>
>gcc -lmysqlclient file.c
>
>gcc -L /usr/lib/mysql -lmysqlclient file.c
>
>gcc -L /usr/lib/mysql -I /usr/include/mysql -lmysqlclient file.c
>
>
>	Also note that .so files are not present in /usr/lib/mysql. I'm
>not sure if these .so are necessary. This is urgent. If you have any idea
>about how to solve this problem, pleaaasssse let me know!
>
>
>	My version is 4.0.4. Please let me know if any extra rpms other
>than server, client, shared and devel are necessary for using mysql from C.
>							  Rahul.
>

Thread
accessing mysql from CRahul Amaram-RollNo.20000868 Nov
  • Re: accessing mysql from CPaul DuBois8 Nov
  • Re: accessing mysql from CGelu Gogancea8 Nov
  • RE: accessing mysql from CSean Moshenko8 Nov