At 16.21 28/11/2006 +0530, P J P wrote:
Hey, hi again :)
On Tue, 28 Nov 2006, Alberto Massari wrote:
You are trying to link against 2.7 but after picking up the headers
from version 2.5 (see the xercesc_2_5 namespace in the errors). You
cannot mix the include and lib directories!
But, I've not included any such specific headers; Also, I had
mentioned the include/lib directory, that of xerces-c-2.7.0 as
$ g++ -I/usr/local/xerces/include -L/usr/local/xerces/lib ...
so ideally, g++ should have had reported error while creating object
file(s) itself, but instead, error came from the linker. Pretty
strange, isn't it?!.
No, it's not strange: when the compiler creates the object file it
only looks at the headers to determine what is available; it's the
linker the one that puts the pieces together (object file and libraries).
Do you have any idea, how can/should I resolve this?, cause, I don't
have xerces-c-2.5.0 installed on my machine, I've xerces-c-2.7.0 and
I am trying to make my program work with it.
Please verify your installation: the xerces_2_5 namespace is defined
in the header xercesc/util/XercesVersion.hpp and the error you
reported earlier has been fixed on 06/23/2004. This makes me think
that your /usr/local/xerces/include directory is a 2.5 version.
Alberto
Thank you!
--
regards
-P J P
http://www.cdacbangalore.in/~prasad
PS: Please don't send me html/attachment/Fwd mails