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: | <3F6A7C70.7030901@cwilson.fastmail.fm> |
Date: | Thu, 18 Sep 2003 23:48:00 -0400 |
From: | Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 |
X-Accept-Language: | en-us, en |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: getopt: ugly linker messages |
References: | <200309181953 DOT h8IJrMWa017255 AT bolt DOT sonic DOT net> <20030918195607 DOT GA11311 AT redhat DOT com> |
In-Reply-To: | <20030918195607.GA11311@redhat.com> |
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. > In general, these 'resolving blah by linking to __imp_blah' messages can be suppressed by using the '--enable-auto-import' flag to ld (or -Wl,--enable-auto-import' for gcc). If you do that, ld figures that you really know what you're doing, and don't need the 'informational' messages concerning auto-import. -- Chuck -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |