This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: What does this mean?
- From: Muthukumar Ratty <muthu at iqmail dot net>
- To: Dave Gibelli <dgibelli at tiscali dot co dot uk>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 24 Jun 2003 13:05:23 -0700 (PDT)
- Subject: Re: What does this mean?
> $ make
> gcc -Wall -I/usr/local/mysql/include -L/usr/local/mysql/lib -lmysqlclient
> ocd-reader.c
> /tmp/ccHxUIAV.o(.text+0xf6): In function `main':
> : undefined reference to `mysql_init'
Assuming mysql_init is defined in libmysqlclient... gcc is not finding the
library.
> /tmp/ccHxUIAV.o(.text+0x122): In function `main':
> : undefined reference to `mysql_real_connect'
> /tmp/ccHxUIAV.o(.text+0x13b): In function `main':
> : undefined reference to `mysql_error'
> /tmp/ccHxUIAV.o(.text+0x1b03): In function `main':
> : undefined reference to `mysql_real_query'
> /tmp/ccHxUIAV.o(.text+0x1b49): In function `main':
> : undefined reference to `mysql_close'
> collect2: ld returned 1 exit status
> make: *** [ocd-reader] Error 1
>
> My program compiles ok on another machine (Solaris) but on Linux I get the
> above error messages. Any ideas appreciated.
>
> Dave
>