my xerces version is xerces-c-3.0.1
Since this is my first time to use xerces-c
I just make it in the following way:
./configure --prefix=my xerces path
and then make install
It was compiled with g++(version 4.1.2). No error message was seen during the process, and it seemed that the xerces-c was installed successfully to where it should be. And also, as I pointed earlier, SAX2Count et al. works well.
Thank you for your advice. I will keep on try to fix my problem with Xerces.