[急等]linux环境C++使用mysql api 连接问题
///
如下所示,好像与连接库有关
///
系统没有安装mysql
mysql/libmysqlclient.a(mf_pack.o)(.text+0x49a): In function `unpack_dirname':
: warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
mysql/libmysqlclient.a(libmysql.o)(.text+0x345a): In function `mysql_real_connect':
: warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
mysql/libmysqlclient.a(mf_pack.o)(.text+0x4a5): In function `unpack_dirname':
: warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
mysql/libmysqlclient.a(my_gethostbyname.o)(.text+0xe): In function `my_gethostbyname_r':
: warning: Using 'gethostbyname_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
mysql/libmysqlclient.a(libmysql.o)(.text+0xeac): In function `mysql_once_init':
: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
mysql/libmysqlclient.a(my_compress.o)(.text+0x73): In function `my_compress_alloc':
: undefined reference to `compress'
mysql/libmysqlclient.a(my_compress.o)(.text+0x15c): In function `my_compress':
: undefined reference to `compress'
mysql/libmysqlclient.a(my_compress.o)(.text+0x23b): In function `my_uncompress':
: undefined reference to `uncompress'