|
在用编译时出现如下问题不知是怎么回事:
gcc -o getproto mysqlgetproto.c -I/usr/include/mysql -L/usr/lib/mysql -lmysqlclient
以下是出错信息
/usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0xaa): In function `my_uncompress':
: undefined reference to `uncompress'
/usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x13c): In function `my_compress_alloc':
: undefined reference to `compress'
collect2: ld returned 1 exit status
那们大侠能给出一点提示,是程序的错或是mysql自身的错? |
|