This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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]

Building shared objects


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/


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