delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/10/09:07:23

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
X-Authentication-Warning: bono.reversers.net: stefan owned process doing -bs
Date: Fri, 10 Mar 2000 14:59:41 +0100 (CET)
From: "st.jahn" <stefan AT fhtw-berlin DOT de>
X-Sender: stefan AT bono DOT reversers DOT net
To: Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: getopt and getopt_long in MingW32
In-Reply-To: <20000309111534.H30934@cygnus.com>
Message-ID: <Pine.LNX.4.10.10003101455570.287-100000@bono.reversers.net>
MIME-Version: 1.0

On Thu, 9 Mar 2000, Chris Faylor wrote:

> Actually I wouldn't be surprised to learn that cygwin's getopt function
> compiles cleanly using mingw.
> 
> cgf

good guess !

because there is a "getopt.h" we can include it. it defines both the
getopt() and getopt_long() functions. the only thing you need to add
is the linker option -liberty. i found both of the symbols in the library 
libiberty.a in the mingw32 extra library package.

thanks for the hint.

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ Stefan Jahn                                                _/
_/ email: st DOT jahn AT fhtw-berlin DOT de                              _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


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