X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=2.0 required=5.0 	tests=AWL,BAYES_05,RCVD_BAD_ID
X-Spam-Check-By: sourceware.org
Message-ID: <4A71A396.8060300@bull.net>
Date: Thu, 30 Jul 2009 15:43:50 +0200
From: Martine Carannante <Martine.Carannante@bull.net>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Creation of a shared module  (gcc -shared) , undefined references
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hi

I try to port on CYGWIN an open source which runs correctly  on Linux.
In this open source, a shared module (linked with option -shared) is=20
created and after it's loaded by the main program with lt_dlopen() function.

On CYGWIN, I have a problem when I create the module (gcc option=20
-shared). I have always some undefined references to functions which=20
belongs to the main program. On Linux it's not a problem, there are no=20
errors.
 I try to add the option -Wl,-allow-shlib-undefined. I have always the=20
problem.

I don't know what to do. Are there other options to add to the gcc=20
command ?I tried several..or do I have to modify the source code of the=20
module?
I'm not very familiar with shared modules.

Thanks for your help
Best regards
Martine


--=20
Martine Carannante
System Software Development R&D=20

Bull, Architect of an Open World TM=20

T=E9l : (+33) 1 30 80 71 87
http://www.bull.com=20


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

