www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/30/09:44:21

X-Recipient: archive-cygwin AT delorie DOT 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 DOT Carannante AT bull DOT net>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Creation of a shared module (gcc -shared) , undefined references
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019