This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]