paul booker wrote:
Hi folks

I Have tried compiling the below iweblock.idl file from the cxc book
which results each time with include dependency problems that seem endless , i have not exprienced this problem when compiling weblock.cpp


Initially it couldn't find nsiSupport.idl in  gecko-sdk\xpcom\idl
which was expected as vc++ was not looking there by default

after correcting this nsIsupports.idl found a dependency file nsroot.idl which resides in the same directory but this file could not find a dependency file nscore.h which resides in a default place \xpcom\include and known to the compiler

fixing this problem by giving full a path to the include file only generates another dependency problem and so on ...

so in a nutshell then ...

can someone suggest how to to get all nested dependent include files to be looked for in default places known to the compiler ?

Take a look at my most-recent post in npm.embedding; I have "flattened" the SDK so that you only have to specify the one include path to your compiler:


for the IDL compiler, [sdkdir]/idl
for C++ compilers [sdkdir]/include

If you can't wait for the 1.7 SDK, you will need to specify each module separately:

When compiling IDL:
[sdkdir]/xpcom/idl
[sdkdir]/othermodulesasappropriate/idl

when compiling C++:
[sdkdir]/xpcom/include
[sdkdir]/othermodulesasapproriate/include

--BDS
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to