sabarinathan wrote:

Regarding nonfrozen interfaces, yes i used most of the nonfrozen string functions( *withconversion...), which i am trying to replace with the proper substitute.

WithConversion is hardly ever what you actually want... what charset are your narrow strings (UTF8)? You probably want NS_ConvertUTF8toUTF16, which is implemented in the SDK IIRC.

What are the libraries should i link my xpcom component to ? I am currently linking it against following libraries,
libxpcomglue_s.a
-lxpcom , -lxpcom_core, -lplds4 ,-lplc4 ,-lnspr4, -lpthread ,-ldl
-lmozjs -lnss3 -lxpcom_compat -lpthread  -ldl -lm

That depends on whether you're setting MOZILLA_INTERNAL_API or not... if you're using nonfrozen symbols, define MOZILLA_INTERNAL_API and use the following:

-lxpcom -lxpcom_core

If you're using only frozen symbols, don't define MOZILLA_INTERNAL_API and use the following:

libxpcomglue_s.a -lxpcom

In either case it seems very unlikely to me that you need -lxpcom_compat

--BDS
_______________________________________________
Mozilla-xpcom mailing list
Mozilla-xpcom@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to