linux下编译mysql/c++

这个问题比较重要

g++ -o test1 test1.cpp -I /usr/local/include/mysql++ -I /usr/local/mysql/include -L /usr/local/mysql/lib -L /usr/local/lib -l libmysqlclient -l libmysqlpp即可

libmysqlpp可以不要,如果出错的话,试试不要libmysqlpp

open suse 10.1