和其他许多人一样,我也遇到了编译一个包括mysqlpp的程序的问题。mysqlpp似乎安装正确,库路径也在/etc/ld.so.conf中正确设置,并且已知(因此我认为):libmysqlpp.so.3long) const'
myprogram.o: In function `mysqlpp::StoreQueryResult::operator=(mysqlpp::StoreQueryResultconst&)
:26:lib/refcounted.h: In constructor 'mysqlpp::RefCountedPointer<T, Destroyer>::RefCountedPointer()':
lib/refcounted.h:89:2: error: class 'mysqlpp::RefCountedPointer<T, De
我最近写了一段代码mysqlpp::StoreQueryResult result = someObject.getResult();mysqlpp::StoreQueryResult SomeClass::getResult()mysqlpp::StoreQueryResult res =然后,我将第一个代码片段更改为:mysqlpp::StoreQueryRes