Re: IDL #include paths using the SDK

"mark kaplun" <[email protected]> Wed, 30 Oct 2002 11:03:24 +0200
Newsgroups gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
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:[email protected]...
> 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?
>