fatal error mysql.h:No such file or directory during compilation

前端 未结 4 837
滥情空心
滥情空心 2021-01-18 14:47

I have the following code

#include 
#include 

int main(int argc, char **argv)
{
  printf(\"MySQL client version: %s\\n\",          


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-18 15:04

    I come across the same error today, turn out that I forget to install package libmysqlclient-dev. After I install it with

    sudo apt install libmysqlclient-dev
    

    the error went away.

提交回复
热议问题