Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 Subject: Problem with getopt when compiling Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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/