RE: accessing mysql from C

2002-11-08 Thread Sean Moshenko
mysql_connect() is deprecated function. Try using mysql_real_connect(). I've used and haven't experience any problems with it. http://www.mysql.com/documentation/mysql/bychapter/manual_Clients.html#mysql _real_connect Sean -Original Message- From: Rahul Amaram-RollNo.286 [mailto:rah

Re: accessing mysql from C

2002-11-08 Thread Gelu Gogancea
Hi, Take a look in mysql.h. #ifdef USE_OLD_FUNCTIONS MYSQL * STDCALL mysql_connect(MYSQL *mysql, const char *host, const char *user, const char *passwd); int STDCALL mysql_create_db(MYSQL *mysql, const char *DB); int STDCALL mysql_drop_db(MYSQL *mysql, const char *DB); #define mysql

Re: accessing mysql from C

2002-11-08 Thread Paul DuBois
At 22:04 +0530 11/8/02, Rahul Amaram-RollNo.286 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 th