This is the mail archive of the
mailing list for the Cygwin project.
Building shared objects
- From: Stephane ALBIN <albin dot stephane at wanadoo dot fr>
- To: cygwin at cygwin dot com
- Date: Thu, 13 Nov 2003 09:56:32 +0100 (CET)
- Subject: Building shared objects
- Reply-to: albin dot stephane at wanadoo dot fr
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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html