This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems with shared library using static objects


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/
+--------------------------------------------+


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]