Hello all,
I wrote a pretty simple file and try to build it as SO. I listed my steps below:
1) in cpp file, call imgLoader.cpp imgLoader::Singleton
2) write a moz.build.
XPCOMBinaryComponent('testSO')
USE_LIBS += [
'mozalloc',
'xul',
]
3) failed to build it as SO with following error.
/home/samuelyang/build_ff/firefox_dev/zlh_first_com/ucwebConfig.cpp:22:
undefined reference to `imgLoader::Singleton()'
I have tried two things but still failed.
1) disable AC_SUBST(VISIBILITY_FLAGS) in configure.in.
2) Add #pragma GCC visibility push(default) in imgLoader.h and imgLoader.cpp.
Do you guys know how to fix it? Millions of thanks.
_______________________________________________
dev-builds mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-builds