Problems with shared library using static objects
Jorge Pereira
jpereiran@gmail.com
Thu Sep 10 21:19:00 GMT 2009
Hello Everyone!
when compile the dynamic project and have duplicate calls for some
libraries, eg:
gcc -shared -o libfoo.so /path/libhehe.so /path/libhehe.so /path/libhehe.so
This works fine! but when have static files, don't works becouse the
gcc talks about "redefinitions" of libraries, eg:
gcc -shared -o libfoo.so -Wl,-whole-archive /path/libhehe.a
/path/libhehe.a /path/libhehe.a
My doubt is: exist some way for gcc ignore the multiple references!?
Thanks!
--
Regards,
+--------------------------------------------+
Jorge Pereira,
Blog: http://blog.jorgepereira.com.br/
+--------------------------------------------+
More information about the Gcc-help
mailing list