i'm trying to compile a xpcom program with #include <nsCOMPtr.h> #include <nsICookieManager.h> #include <nsCCookieManager.h> #include <nsICookie.h> #include <nsString.h> #include <nsIServiceManager.h>
and linker flags -lxpcom -lnspr4 but i couldn't link the program it gs,ves me lots of undefined reference to ..... errors.
Why are you #including nsCCookieManager.h? That is a private/internal header that you shouldn't need.
Secondly, if you want help, you have to list at least some of the missing symbol names.
Thirdly, if you are writing a component/extension you probably shouldn't be using nsString. That class is frozen and the function imports and layout can change. Instead, use nsEmbedString which is statically linked.
--BDS
_______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
