On Fri, 19 Mar 1999 RaymanJ@stripped wrote:
> I am testing out how to connect to MySQL with a C program. This is the first
> time for me to do this.
> When ever I compile my program it gives me an error message as below.
> /var/tmp/ccyP17051.o: Undefined symbol `_mysql_connect' referenced from text
I had the same problem. It was the order in which I passed items to the
c compiler. try putting your program before all the libraries, like this:
gcc program.c -I /usr/lib/mysql -lmysqlclient