delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/05/26/11:34:16

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Fri, 26 May 2000 13:45:51 +0100 (BST)
Message-Id: <200005261245.NAA66045@ceratops>
From: Jon Cook <cookj AT cs DOT man DOT ac DOT uk>
To: cygwin AT sourceware DOT cygnus DOT com
Subject: ld -shared

Hi,

Is the -shared option to ld supported?. 

I know it was not under version beta 20.1 (ld said so if you tried
using it) and this feature was listed in the TODO list. I've now
installed the net release and ld no longer complains and the
corresponding TODO list entry has disappeared.

While this leads me to belive it is supported, I'm having problems
using it. Essentially what I have, in a file a.c, is:

void b(void);

void a(void)
{
   b();
}

On a Unix box I can create a shared library with:

gcc -c a.c
ld -shared a.o -o liba.so

But when I try this on cygwin I get an unresolved reference to b -
exactly as if the shared option is ignored.

Thanks for any help,
Jon



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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