How to include the mysql header?

后端 未结 5 1087
失恋的感觉
失恋的感觉 2020-12-06 19:43

I\'m building an open source project from source,

and it needs to include :

#if USE_MYSQL
#include 
#endif         


        
5条回答
  •  甜味超标
    2020-12-06 20:11

    g++ -o Programname $(mysql_config --cflags) Programfile.cpp $(mysql_config --libs)

    Does the trick in Linux.

提交回复
热议问题