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

前端 未结 4 841
滥情空心
滥情空心 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 14:57

    Check that /usr/include/mysql/mysql.h exists. If you have installed the header files somewhere else (say /opt/mysql/include), add that location with -I/opt/mysql/include.

提交回复
热议问题