At 16.54 28/11/2006 +0530, P J P wrote:

  Hi again,

On Tue, 28 Nov 2006, Alberto Massari wrote:
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).

Oh okay! But wouldn't it(gcc) complain about missing headers while creating object files? Or may be just the header names are same, but its contents are not really same between xerces-c-2.5.0 and xerces-c-2.7.0, is that so?.

The headers for 2.5 and 2.7 should be almost the same.



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.

No, I never installed xerces-c 2.5 version on my machine. The 2.7 version also, I recently installed in order to compile my program. I got it(xerces-c 2.7) from

http://www.apache.org/dist/xml/xerces-c/xerces-c-current.tar.gz

Do I have to do any changes to 2.7 sources to make it compatible with 2.5 version?

Slow down: you started this thread under a title "Xerces-c-src_2_5_0 compile error", you list linker errors containing the xerces_2_5 namespace, and you now say that you never installed version 2.5? I think I have lost you.... Start from scratch: remove whatever you downloaded, do a 'make clean' of your project, download Xerces 2.7 and start again.

Alberto



Thank you!
--
regards
   -P J P
http://www.cdacbangalore.in/~prasad
PS: Please don't send me html/attachment/Fwd mails

Reply via email to