List:General Discussion« Previous MessageNext Message »
From:<sinisa Date:August 25 1999 11:27am
Subject:c api: linking
View as plain text  
M. Eric Otey writes:
 > 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
 > 
 > 
 > 
 > 

Hi!

If you are sure that you have got right client libs for mysql, then
you should upgrade your glibc to 1.1.1.

Sinisa

+----------------------------------------------------------------------+
| TcX  ____  __     _____   _____  ___     ==  mysql@stripped            |
|     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic          |
|    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:sinisa@stripped|
|   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaka, Cyprus             |
|  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____                             |
|  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^                            |
|             /*/             \*\                Developers Team       |
+----------------------------------------------------------------------+
Thread
c api: linkingM. Eric Otey24 Aug
  • c api: linkingsinisa25 Aug
    • c api: linkingJani Tolonen27 Aug