Warren Young 写道:
> Niu Kun wrote:
>> It's a bit strange to have the "HEADER" in the macro's name and compare
>> it to mysqlpp_lib_version() function.
>
> This was done on purpose. It allows a program to tell when it was built
> using headers from one version of MySQL++ and linked to another. See
> examples/resetdb.cpp to see how to use these facilities.
Oh,yes.
Found the another description for the getservbyname problem.
http://bugs.mysql.com/bug.php?id=7619
It seems that it's mysql's constant bug.:(
Hope that it won't trouble me for a long term running.:)