David Bradley wrote:

If you're within the make system, you need to specify XPCOM in your
REQUIRES list. The build system will then automatically pickup the
correct include directories and thus pickup nsISupports. And you only
need to specify the include of the file, with no path:

#include "nsISupports.idl"
I'm not in the make system, I'm using the downloadable SDK. It seems that you have to specify all kinds of -I directories to get these header files to work properly...

in idl files, for example
#include "nsIURI.idl" requires -I /necko/idl -I /xpcom/idl

or in C++
#include "nsISupports.h" requires -I /nspr/include/ nsISupports.idl

Wouldn't it make much more sense for these files to be included "xpcom/include/nsISupports.h" and have this file include "nspr/include/nscore.h", that way you only have to specify one -I directory, the root of your SDK installation.


Reply via email to