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: <3F6A7C70.7030901@cwilson.fastmail.fm> Date: Thu, 18 Sep 2003 23:48:00 -0400 From: Charles Wilson 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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 > > 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/