I'm trying to build a scriptable plugin (linux) but can't get a clean compilation.
I have generated a header file with XPIDL, included it in my source and compiled. My tactic from here is to add files to the compilation as the compiler complains of there absence. I think this is too simplistic!
For example, nslSupportsImpl.h has a conditional compilation, conditional on XPCOM_GLUE. By default, this leads to the inclusion of nsTraceRefcnt.h which doesn't exist. The alternative leads to an overwhelming list of errors.
So.
1) Should XPCOM_GLUE be defined or not, and are there any others I should be aware of?
2) How do I know I'm including the right headers?
Many Thanks, Phil
Hi Phil,
Try directly using the SDK to fulfill the plugin's requirement. You can find this here: http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.4b/gecko-sdk-win32-1.4b.zip
You most likely will want to define XPCOM_GLUE.
You should check out the documentation here:
http://www.mozilla.org/projects/xpcom/
Regards, Doug Turner
