This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin, g++ and boost? Do I need dll.a?


At http://www.cygwin.com/ml/cygwin/2008-01/msg00158.html
Charles Wilson said:

> With -static, -lxxx only looks for:
>
>          libxxx.a
>          xxx
>
>
> Note that, oddly, in -static mode a MS-style library name "xxx.lib"
> will be ignored, while in (normal) mode it will be used if found (and
> the other patterns ahead of it are not found). Just an odd little
quirk.


That's not right. In -static mode, the binutils/ld/emultempl/pe.em
function: gld_${EMULATION_NAME}_find_potential_libraries will (failing
to find lib*.a) find *.lib as static archives 

To test, just rename libkernel32.a to kernel32.lib (import libs are just
special static archives) and build a simple 'hello_world.c' testcase
with
-static 

Danny




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]