Hi! all,
I am linking the mysql client library using -l option i.e.
-lmysqlclient. I have also specified the path of the libmysqlclient.a.
But every time i make, i get some undefined reference errors for
compress and uncompress. The output of make is given below. I don't know
why i am getting these errors.
gcc -g -D__LINUX_PLATFORM -DSMM -L../../../../object -I.
-I../../../../../common/include
-I../../../../../common/element_management/sms/common -I../../dblib
-I../../mysqldb/include aplstatsmanager.c
../../../../object/aplsmmpdu.o ../../../../object/libshm_host.a
../../../../object/apldblib.o -lmysqlclient -o smm
../../../../object/libmysqlclient.a(my_compress.o): In function
`my_uncompress':
my_compress.o(.text+0x97): undefined reference to `uncompress'
../../../../object/libmysqlclient.a(my_compress.o): In function
`my_compress_alloc':
my_compress.o(.text+0x12b): undefined reference to `compress'
collect2: ld returned 1 exit status
make: *** [all] Error 1
Am i suppossed to link some other file apart from libmysqlclient.a??
If possible, Pl. help me out.
Thanks and Regards,
Rahul Gauba