Re: IDL #include paths using the SDK
David Bradley <[email protected]> Wed, 30 Oct 2002 08:51:53 -0500
| Newsgroups | gmane.comp.mozilla.devel.xpcom |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Benjamin Smedberg wrote: > 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? 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" Checkout some of the Makefile.in files to see how this is done.