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_reload(mysql) mysql_refresh((mysql),REFRESH_GRANT) #endif #define HAVE_MYSQL_REAL_CONNECT mysql_connect it's already "history". Try to use mysql_real_connect() Regards, Gelu _____________________________________________________ G.NET SOFTWARE COMPANY Permanent e-mail address : [EMAIL PROTECTED] [EMAIL PROTECTED] ----- Original Message ----- From: "Rahul Amaram-RollNo.2000086" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 08, 2002 6:34 PM Subject: accessing mysql from C > whenever i try to execute a C file which uses the mysql_connect method > i get the following error. > > > 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. > > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <[EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > > --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php