Jon Smirl wrote:
On 3/13/06, Benjamin Smedberg <[EMAIL PROTECTED]> wrote:
Many people come to this newsgroup to ask questions about how to link their
XPCOM component or application. This is the correct newsgroup to ask such
questions; however, questions frequently don't have enough details to
provide a good answer. When asking a question about linkage issues, please
read the following page on MDC:

http://developer.mozilla.org/en/docs/XPCOM_Glue

And be sure to provide the following information in your question:

1) What branch/codebase are you trying to build against?
2) Which linking strategy are you using (internal, dependent, or standalone)
3) What compile and link flags are you using?

That page doesn't mention anything about which compile flags are
needed for an external build. I ended up using these:
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -fno-rtti -fno-exceptions -pthread -pipe -fshort-wchar

No it doesn't, because it's not a generic "how to build C++ code that uses mozilla headers" doc. That would be useful, but it's a different doc. That doc only covers particular libs to link (or not-link) and the XPCOM_GLUE and MOZILLA_INTERNAL_API preprocessor macros.

--BDS
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to