I would guess that the include directive in your IDL file points to a mozilla source directory and this is probably the source for your problem. You should include IDL files only from the directory at which the make process puts them (on my win its c:\mozilla\dist\idl) and specify the path to that directory as a -I parameter to XPIDL. My understanding is that mozilla IDL files assume that they are located at one directory.
Hope it helps, Mark. "Benjamin Smedberg" <[EMAIL PROTECTED]> wrote in message news:apnmrl$7v31@;ripley.netscape.com... > I'm having problems with the IDL #include syntax, and I don't know > whether it's a bug or a "feature"... > > /* MyInterface.idl */ > > #include "xpcom/idl/nsISupports.idl" > > [uuid(etc...)] > interface myIFace : nsISupports > { > }; > > /* end */ > > I compile this using > xpidl -m header -I /path/to/SDK MyInterface.idl > > and receive an error: "xpcom/idl/nsISupports.idl:50: can't open included > file nsrootidl.idl for reading" > > Shouldn't I be able to do this, and have xpidl find this file > automatically? Or do I always have to specify -I /pathtoSDK/xpcom/idl > on the xpidl commandline? >
