delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/18/16:18:43

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <200309182018.h8IKIVWa019609@bolt.sonic.net>
To: cygwin AT cygwin DOT com
From: Bryan Higgins <bryan AT motet DOT com>
Reply-To: bryan AT motet DOT com
Subject: Re: getopt: ugly linker messages
Date: Thu, 18 Sep 2003 13:18:31 -0700

Christopher Faylor wrote:

>You can use unistd.h if you want.  If you knew this already why were you
>asking the question?

From the gnu getopt(3) man page (mysteriously missing in cygwin):

       #include <unistd.h>

       int getopt(int argc, char * const argv[],
                  const char *optstring);

       extern char *optarg;
       extern int optind, opterr, optopt;

If one does this with the latest cygwin, ugly linker messages result.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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