Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <9003722.1068713792137.JavaMail.www@wwinf0401> From: Stephane ALBIN Reply-To: albin DOT stephane AT wanadoo DOT fr To: cygwin AT cygwin DOT com Subject: Building shared objects Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Date: Thu, 13 Nov 2003 09:56:32 +0100 (CET) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id hAD8uhgs015713 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/