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.
>