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.2000086 [mailto:rahul@;gdit.iiit.net] Sent: Friday, November 08, 2002 11:34 AM To: [EMAIL PROTECTED] 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