Monday, May 24, 2010

Including header files in the subdirectories?

Hi,





I am using Microsoft Visual C++ Express edition 2005 for writing a program. I needed an xml parsing library and i chose to use the Xerces libraries. The problem is that the header files are located in my D:\Program Files\Microsoft Visual Studio 8\VC\include\xercesc directory. the search path for the include files includes the path till D:\Program Files\Microsoft Visual Studio 8\VC\include so the compiler doesnt search within the xercesc directory and i am getting file not found error when i use #include%26lt;xercesc\utils\Platformutils.hpp... How to make the compiler search within the subdirectories of the included paths???


Also is the statement


#include%26lt;xercesc\utils\Platformutils.h...


correct??

Including header files in the subdirectories?
Use within double quotes ... dontuse %26lt;





include "dirname/filename.h"


No comments:

Post a Comment