gcc auto-import info (Was: cygwin build failure)

Charles Wilson cygwin@cwilson.fastmail.fm
Sun Nov 7 17:52:00 GMT 2004


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/



More information about the Cygwin mailing list