Building shared objects
Stephane ALBIN
albin.stephane@wanadoo.fr
Thu Nov 13 08:56:00 GMT 2003
Hi all,
I currently use cygwin 1.3.4.
I'm trying to build a shared object which uses another lib.
My object is named : mf.o
It uses the lib name : libHt.so
And for my test, they are in the same directory.
libHt.so has been generated by :
gcc -shared -o libHt.so Ht.o
If I do :
gcc -shared libHt.so mf.o -o libmf.so
I get this message :
libHt.so: fake: multiple definition of '___do_frame_init'
libHt.so: fake: multiple definition of '___do_frame_fini'
libHt.so: fake: multiple definition of '___EH_FRAME_BEGIN__'
I don't think it is a gcc problem because it works correctly on Linux with gcc 3.3.1.
If I link objects directly, it works :
gcc -shared -o libmf.so mf.o Ht.o
But I don't want this feature.
Any help is welcome.
TIA.
Stéphane Albin.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list