开发者社区 问答 正文

自己写的C程序,用于连接Mysql数据库,编译时出错? 400 报错

自己写的C程序,用于连接Mysql数据库,编译时出错? 400 报错

我在Ubuntu 14.04.2LTS 上配置好Mysql及其开发环境(Mysql server, workbench, connector c)

但是,编译一段代码时报了如下错误:

/usr/include/my_pthread.h:50:23: fatal error: thr_mutex.h: No such file or directory
 #include "thr_mutex.h"

于是我找到mysql提供的所有头文件的目录,发现唯独少thr_mutex.h,该问题如何解决?

展开
收起
爱吃鱼的程序员 2020-06-05 13:35:06 537 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    你看是不是pthread的版本原因。

    2020-06-05 13:35:24
    赞同 展开评论