I'm writing a client program using the mysql c api. It compiles fine, but I
have problems when I try to link it.
I'm using Red Hat Linux 5.2, with a binary distribution of MySQL 3.22.23b,
glibc 2.0.7-29
I'm using the c api although the program itself is c++.
the command line is:
g++ *.0 -L/usr/lib/mysql -lmysqlclient -o cpdb
It replies,
/usr/lib/mysql/libmysqlclient.a in function my_open
my_open.o: undefined reference to open64
in function fn_format mf_format.o: undefined reference to __lxstat64
in function my_fopen my_fopen.o: undefined reference to fopen64
It seems to me like I'm not linking a library in somewhere, but I have no
idea what library it is. I've tried including dbug, m, niasm, mysys, merge,
heap, & socket. None of these make any difference. Can anyone help?
Thanks
M. Eric Otey
Webmaster,
INTERQUEST
www.inter-quest.com
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com