Have you actually included the mysql library in your makefile?
Fraser
On Sun, 21 Mar 1999, Thomas R. Bedell wrote:
> Hello All,
>
> This is probably pretty dumb but...
>
> Does anybody see a problem with the following code????
>
>
> /* Establish Connection to MySQL Server */
>
> #include "mysql.h"
> #include <stdio.h>
> #include <stdlib.h>
>
> MYSQL mysql;
>
> main()
> {
> mysql_init(&mysql);
>
> /* my prog here */
>
> return 0;
> }
>
>
> When I try to comple I get...
>
> [trbedell@oscar c]# gcc -o connect mysql.c
> /tmp/cca034371.o: In function `main':
> /tmp/cca034371.o(.text+0x9): undefined reference to `mysql_init'
> [trbedell@oscar c]#
>
>
> USING: Redhat 5.1, MySQL 3_22_20a, (I have installed Bench, Client and Devel
> packages also) and glibc-2_0_7-19.
>
>
> Thank you in advance.
>
> Tom Bedell
>
>
>
>
> ---------------------------------------------------------------------
> To request this thread, e-mail mysql-thread728@stripped
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail mysql-unsubscribe@stripped instead.
> For archive commands, etc, e-mail: mysql-help@stripped
>
>