Alberto, Thanks for the reply. I did resolve the error "cannot find 'dom/DOM.hpp' file" by adding the Xerces include path to the project include directories. But for some files I still got this error: ========= c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\MsXml.h(9594): fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701)
Please choose the Technical Support command on the Visual C++ ========= And this error only occurs if I add XERCES_CPP_NAMESPACE_USE to some of the header files referenced in the cpp files. In fact, the reason I got the first error "cannot find 'dom/DOM.hpp' file" seems to be that I changed a direct class reference (class DOMNode.hpp;) to instead include the header (#include <dom/DOMNode.hpp>) in one of the header file and use XERCES_CPP_NAMESPACE_USE. A more general question: in a header file, if I specify XERCES_CPP_NAMESPACE_USE right after the #includes, will it cause conflict if I am using some other library inferfaces in the same header file? Thanks much in advance. Frank -----Original Message----- From: Alberto Massari [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 8:52 AM To: [email protected] Subject: RE: compilation errors in my application using Xerces-c Frank, the error "cannot find 'dom/DOM.hpp' file" means that your project does not specify the right directory in the 'include directories' property. The right one to specify would be the directory where you copied the Xerces files (hopefully, you did preserve the directory structure). If you still cannot find it, send an e-mail with the output of a dir /s command Alberto At 21.38 20/11/2005 -0800, Frank Zhou wrote: >Saurabh, > >I did copy all the include header files under my application and set >the various sub project properties correct (at least I believe so), and >as I said in my previous messaage, I can actually compile most of my >cpp files. Only for some of them, I got the errors. I suspect I did not >use things like XERCES_CPP_NAMESPACE_USE,XERCES_CPP_NAMESPACE_QUALIFIER >et cetera correctly in come cases. > >Thanks for your reply though. > >Frank > > >Hi > >Guess, > >You need to copy the "include" folder under xerces to >your application or >add it's \ > >path to your project. This folder contains wuite a >few generated headers >(*.hpp) etc. > > >warm regards > >Saurabh > > ----- Original Message ----- > > From: Xiaofan Zhou > > To: [email protected] > > Sent: Monday, November 21, 2005 2:16 AM > > Subject: compilation errors in my application using >Xerces-c > > > > > > Hi, All, > > > > I am having issues compile my application in which >I use Xerces-c >package. Here is \ > >what I do: > > > First, my environment is Microsoft Visual C++ >version 7.1. > > > I first build the Xerces-c project (version 2.7) >together with ICU > >(version 2.8) \ > >using the build script packageBinaries.pl in my >windows command line, I >used the \ > >command: > > > > perl packageBinaries.pl -s c:\xerces-c-src2_7_0 >-o c:\temp\xerces->c2_7_0-win32 -t \ > >icu -x VC7.1 > > > Everything seems fine and I got the dlls and >library files created. > > > I then copied the dlls and libraries >(xerces-c_2_7.dll, xerces->c_2_7D.dll, \ > >xerces-c_2.lib, xerces-c_2D.lib, icuuc.lib, >icuucd.lib) to my application >lib fold. > > > Now, in my Visual C++ solution (my application), I >changed the >properties in the \ > >various projects like Additional Include Directories >to include the path >to the \ > >Xerces include files if the project uses the Xerces-c >functionalities. > > > Now I try to compile individul source files one by >one. It seems that I >can compile \ > >most of my c++ files fine, but I found that in order >for these files to >be compiled, \ > >I have to put XERCES_CPP_NAMESPACE_USE in some of the >header files, and >sometimes I \ > >have to use XERCES_CPP_NAMESPACE_QUALIFIER for some >variables. > > > And even so, I still can not compile some of the >files. Here are two of >compilation \ > >errors: > > > (1) x:\inc\options\options.h(13): fatal error >C1083: Cannot open include > > > > file: 'dom/DOM.hpp': No such file or directory > > > (2) c:\Program Files\Microsoft Visual Studio .NET > > > 2003\Vc7\PlatformSDK\Include\MsXml.h(9594): fatal >error C1001: INTERNAL >COMPILER ERROR > > > (compiler file 'msc1.cpp', line 2701) > > > Please choose the Technical Support command on the >Visual C++ > > > Help menu, or open the Technical Support help file >for more information > > > ========== > > Can anyone gives me some advices on this? > > > Thanks much in advance. > > > > >__________________________________ >Yahoo! FareChase: Search multiple travel sites in one click. >http://farechase.yahoo.com > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
