Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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