tar zxvf mysql++-3.1.0.tar.gz
./configure vim ./ssx/genv2.cpp 添加 #include <cstring> make && make installvim ./mysql++-3.1.0/examples/simple1.cpp
注释:
// Get database access parameters from command line // mysqlpp::examples::CommandLine cmdline(argc, argv); // if (!cmdline) { // return 1; // } // Connect to the sample database. 修改 mysqlpp::Connection conn(false); if (conn.connect("mainsitedb", "192.168.1.150","root", "123456"))find / -name "libmysqlclient.so "
vim /etc/ld.so.conf 添加 /opt/lampp/lib/mysql ldconfig -v./simple1 测试
Glog安装 (略。。。。)