www.delorie.com/archives/browse.cgi | search |
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: | <5.1.1.5.2.20021228201006.00ba7df8@www.marble.be> |
X-Sender: | gerrit AT www DOT marble DOT be |
Date: | Sat, 28 Dec 2002 20:14:16 +0100 |
To: | cygwin AT cygwin DOT com |
From: | Gerrit Cap <Gerrit DOT Cap AT marble DOT be> |
Subject: | Problem with getopt when compiling |
Mime-Version: | 1.0 |
Hello I've downloaded a C++ source archiuve and when compiling I got an error which I traced down to two different definitions of getopt(). The sources include /usr/include/unistd.h this file includes /usr/include/sys/unistd.h which defines getopt as: >int getopt(int, char * const [], const char *); and it also includes /usr/include/getopt.h which defines getopt as: >int getopt (int, char * const *, const char *); Of course this is the same definition but it is still different enough to force a compiler error. rather annyoing... Gerrit. -------------------- Marble Consulting ---------------------- Gerrit Cap http://www.marble.be/ OO Solutions Engineer mailto:Gerrit DOT Cap AT marble DOT be Marble Consulting Blauwe Gaanweg, 53 tel : +32 475 72.94.36 B-9150 Kruibeke-Bazel fax : +32 3 744.19.17 Belgium -------------------- Marble Consulting ---------------------- There is only one thing in the world worse than being witty, and thats not being witty. (Monthy Python) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |