delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/27/12:01:51

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 27 Sep 2000 11:59:56 -0400
Message-Id: <200009271559.LAA28487@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: egb AT us DOT ibm DOT com
CC: cygwin AT sourceware DOT cygnus DOT com
In-reply-to: <OF21C1D4E7.08EDCBF4-ON85256967.005325D8@raleigh.ibm.com>
(egb AT us DOT ibm DOT com)
Subject: Re: Linking in WSAGetLastError
References: <OF21C1D4E7 DOT 08EDCBF4-ON85256967 DOT 005325D8 AT raleigh DOT ibm DOT com>

>      gcc -s -Wl,--base-file,mandel_dll.base -o mandel_dll.dll mandel_dll.o
> -Wl,-e,_mandel_init AT 12

You're using the tools wrong.  Here, "-s" means "strip debug symbols".
If you want a shared library, use "--shared" instead.  You can use
both if you want a stripped DLL.  Use the --out-implib linker (-Wl,)
option to produce an import library at the same time.  You don't need
the --base-file option.

--
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