Talk:XPCOM Glue
From MDC
The table in the "Sample Compiler/Linker Flags" section is painfully wide. Perhaps it should be transposed, like this? --Nickolay 09:05, 11 July 2006 (PDT)
| Linking Strategy | Dependent Glue | Standalone Glue |
|---|---|---|
| Compiler Flags | ||
| #include "xpcom-config.h" | #include "xpcom-config.h" #define XPCOM_GLUE | |
| OS-dependent Linker Flags | ||
| Windows | -LIBPATH:c:/path/to/sdk/lib xpcomglue_s.lib xpcom.lib nspr4.lib | -LIBPATH:c:/path/to/sdk/lib xpcomglue.lib |
| Mac | -L/path/to/sdk/lib -L/path/to/sdk/bin -Wl,-executable-path,/path/to/sdk/bin -lxpcomglue_s -lxpcom -lnspr4 | -L/path/to/sdk/lib -lxpcomglue |
| Linux | -L/path/to/sdk/lib -L/path/to/sdk/bin -Wl,-rpath-link,/path/to/sdk/bin -lxpcomglue_s -lxpcom -lnspr4 | -L/path/to/sdk/lib -lxpcomglue |