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: <418E6036.7090304@cwilson.fastmail.fm> Date: Sun, 07 Nov 2004 12:49:42 -0500 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 MultiZilla/1.6.4.0b MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: gcc auto-import info (Was: cygwin build failure) References: <418DDA49 DOT 2080603 AT x-ray DOT at> In-Reply-To: <418DDA49.2080603@x-ray.at> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reini Urban wrote: > Does someone remember how to get rid of the new ld auto-import > Info: resolving _optarg by linking to __imp__optarg (auto-import) > Info: resolving _optind by linking to __imp__optind (auto-import) > messages? > > I guess it's no -W, just a diagnostic message, for which not so many > options to supress exist. > Or can you easily declare them on the cmdline to be imported somehow? > Otherwise we'll have to decorate the src'es with DLLIMPORT To suppress the info message from ld, explicitly enable auto-import (instead of relying on the default-enable of auto-import) by saying -Wl,--enable-auto-import But that's not the error here. The error is that _pg_tolower is defined in both libpgport.a and libpq.a. This is not an auto-import problem. > ../../../src/port/libpgport.a(pgstrcasecmp.o)(.text+0x1b0): In function > `pg_tolower': > /home/adunstan/pgbf/root/HEAD/pgsql.3200/src/port/pgstrcasecmp.c:119: > multiple definition of `_pg_tolower' > ../../../src/interfaces/libpq/libpq.a(dshcs00145.o)(.text+0x0): first > defined here -- 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/