Fabrice Desré wrote:
 Hello,

 I'm writing an xpcom component for a XULRunner application. In this
component, I'm #including "nsStringAPI.h" to use NS_ConvertUTF8toUTF16()
 and i'm linking my component with -lxpcomglue -lnspr4 -lplds4 -lxpcom
-lxpcom_core.

xpcom_core doesn't exist in XULRunner, it's merged in with libxul.

It also doesn't make sense to link against xpcomglue and xpcom at the same time: xpcomglue is the *standalone* glue... you almost certainly want xpcomglue_s. See http://developer.mozilla.org/en/docs/XPCOM_Glue for a description of the linking strategies available.

So far so good.

But when launching xulrunner, it fails with :
nsNativeModuleLoader::LoadModule("/home/desrefa/Projects/xul/explorer/components/tools.so")
- load FAILED, rv: 80004005, error:
        /home/desrefa/Projects/xul/explorer/components/tools.so: undefined
        symbol: _Z13NS_StringCopyR9nsAStringRKS_
nsNativeModuleLoader::LoadModule("/home/desrefa/Projects/xul/explorer/components/tools.so")
- load FAILED, rv: 80004005, error:
        /home/desrefa/Projects/xul/explorer/components/tools.so: undefined
        symbol: _Z13NS_StringCopyR9nsAStringRKS_
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
nsChromeRegistry.cpp, line 1239

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

Reply via email to