MySQL Forums
Forum List  »  Newbie

MySQL C API
Posted by: Mark Borg
Date: August 18, 2005 04:15AM

Hi there!

I'm trying to run a program on FreeBSD (that's a unix-type OS) which creates/uses a MySQL database (also installed on FreeBSD). The program returns an error saying it cannot find mysql_field_count. I looked up mysql_field_count and found out it's a function in the C API of MySQL, so the I concluded the problem must either be an incorrect/missing reference to the API or the API itself is missing from my system.

I need to know the path/filename of the API to try to solve the problem. The MySQL manual says: "The C API code is distributed with MySQL. It is included in the mysqlclient library and allows C programs to access a database." Still, there is no mention of what the filename is.

I found these files in the lib folder:
libdbug.a libmysqlclient.a libmysys.a
libheap.a libmysqlclient.la libnisam.a
libmerge.a libmysqlclient.so libvio.a
libmyisam.a libmysqlclient.so.14
libmyisammrg.a libmystrings.a

I'm thinking libmysqlclient might be the MySQL C API, but I'm not sure...

Thanks,
Mark

Options: ReplyQuote


Subject
Written By
Posted
MySQL C API
August 18, 2005 04:15AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.