This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
What does this mean?
- From: "Dave Gibelli" <dgibelli at tiscali dot co dot uk>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 24 Jun 2003 10:30:17 +0100
- Subject: 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'
/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