I posted a question a while back about failure to compile simple1.cc.
The problem was in type_info1.hh. It appears that even if you do not
build mysql++, you still need to patch type_info1.hh.
Unfortunately, the patch didn't work for me. I've not tracked down why.
I discovered and fixed the problem by going over to my RedHat machine (I
normally run Suse) and loading in the mysql++ rpm file.
I manged to get simple1.cc to compile there and by comparing all the header
files managed to figure out what was wrong on my Suse machine.
Hope this helps some others.