当前位置:Gxlcms > 数据库问题 > 配置mysql++库

配置mysql++库

时间:2021-07-01 10:21:17 帮助过:4人阅读

$ sudo pacman -S mysql++

$ touch main.cpp

$ vim main.cpp

 1 # include <iostream>
 2 # include <mysql++.h>
 3 
 4 using namespace std;
 5 
 6 int main()
 7 {
 8 cout << "Hello Mysql++ " << endl;
 9 getchar();
10 return 0;    
11 
12 }

$ g++ -o m main.cpp -I /usr/include/mysql++/ -I /usr/include/mysql -lmysqlpp

配置mysql++库

标签:-o   pac   ++   include   get   stream   tchar   mes   code   

人气教程排行