[急等]linux环境C++使用mysql api 连接问题

everestsun 2008-02-22 10:21:18
///
如下所示,好像与连接库有关
///
系统没有安装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'
...全文
95 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
内存泄漏 2008-02-23
  • 打赏
  • 举报
回复
是不是少了什么连接库??

4,011

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 数据库
社区管理员
  • 数据库
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧