Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have installed xerces and added it in Eclipse but still getting error ::

xercesc/dom/DOM.h: No such file or directory
Posted

1 solution

Without telling us (a) where and how you installed xeresc or (b) where Eclipse is installed, it's a little hard to give accurate directions for solving.

However - put simply, the compiler doesn't know where to find the files.

I recently used Code::Blocks on my Desktop machine to try a project I'd been working on with my laptop. When I did this, much to my horror - gdiplus.h wasn't found. Nor for that matter was glext.h and a few others.

Now, in the #includes section of my code these files were included like so:
C++
#include <gdiplus.h>
#include <GL/gdiplus.h>


Since I have Code::Blocks installed in C:\Program Files(x86)\CodeBlocks, the compiler - MingGW resides in C:\Program Files (x86)\CodeBlocks\MinGW
This meant that I had to:
(a) copy gdiplus.h to C:\Program Files (x86)\CodeBlocks\MinGW\include\gdiplus.h
(b) copy glext.h to C:\Program Files (x86)\CodeBlocks\MinGW\include\GL\glext.h
 
Share this answer
 
v2
Comments
yogesh muchhal 16-Apr-12 10:29am    
I am using Ubuntu 11.04.

Path for all the include files is usr/include/

And I have installed xercesc inside usr/include/

The way I am calling the files in my code ::

#include <xercesc dom="" domdocument.h="">
#include <xercesc dom="" domdocumenttype.h="">

Where I have added it in eclipse ::

In eclipse -> Project-> Properties ->C/C++ Build ->Settings ->GCC C++ Linker - Libraries
I have added the xercesc in the right and side window.
enhzflep 16-Apr-12 10:34am    
Sorry, can't see the #includes - the angle brackets have been munched by the editor.

Well, you have told the compiler where to find the library files (.so extension from memory), BUT they aren't even being searched for (yet) since they're used during the step _after_ compilation.

Can you confirm the results of the following command?

ls /usr/include/xercesc
yogesh muchhal 16-Apr-12 10:41am    
ls /usr/include/xercesc
dom framework internal parsers sax sax2 util validators xinclude
enhzflep 16-Apr-12 10:47am    
Hmmmm.
Well, I'm about out of ideas. Not near my desktop with linux on it right now.

Have you tried the fully-qualified name of the include files?

Something like:

#include "/usr/include/dom/DOM.h" (don't forget - linux filenames ARE case-sensitive)
yogesh muchhal 16-Apr-12 10:52am    
Yes .. Still of no help. Will try after sometime. If you have any idea will be waiting for ur reply.

Thanks for looking into the problem.

Bye

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900