标签:-o pac ++ include get stream tchar mes code
//Manjaro
$ 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
标签:-o pac ++ include get stream tchar mes code
原文地址:https://www.cnblogs.com/bhgk/p/11839073.html