This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: getopt and getopt_long in MingW32


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.jahn@fhtw-berlin.de                              _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]