X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Sun, 13 Jan 2008 20:25:44 +1300 From: Danny Smith Subject: Re: cygwin, g++ and boost? Do I need dll.a? To: Cygwin Message-id: <000001c855b5$830714a0$cb4861cb@THOMAS> MIME-version: 1.0 X-Mailer: Microsoft Outlook, Build 10.0.2627 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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/