Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 18 Sep 2003 16:13:04 -0400
From: Christopher Faylor <cgf-rcm@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: getopt: ugly linker messages
Message-ID: <20030918201304.GA12297@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <200309182008.h8IK8EWa018786@bolt.sonic.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <200309182008.h8IK8EWa018786@bolt.sonic.net>
User-Agent: Mutt/1.4.1i

On Thu, Sep 18, 2003 at 01:08:14PM -0700, Bryan Higgins wrote:
>On Thu, 18 Sep 2003 15:56:07 -0400, Christopher Faylor wrote:
>>On Thu, Sep 18, 2003 at 12:53:22PM -0700, Bryan Higgins wrote:
>>>How can I suppress the linker messages
>>>
>>>Info: resolving _opterr by linking to __imp__opterr (auto-import)
>>>Info: resolving _optarg by linking to __imp__optarg (auto-import)
>>>Info: resolving _optopt by linking to __imp__optopt (auto-import)
>>>Info: resolving _optind by linking to __imp__optind (auto-import)
>>>
>>>which now appear?
>>
>>#include <getopt.h>
>>
>>and don't define any of the getopt variables yourself.
>
>Since POSIX getopt is handled in unistd.h, shouldn't the magic appear there?

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

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

