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: <010e01c28fef$e090fff0$78d96f83@pomello> From: "Max Bowsher" To: "Chris Twiner" Cc: References: Subject: Re: mno_cygwin gcc 3.2 Date: Tue, 19 Nov 2002 17:19:54 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Chris Twiner wrote: >> No, can't see anything odd. >> >> Maybe adding '-v' to your link-stage invocation of gcc with show >> something helpful. >> > > It did no -L/lib/mingw for ld, so the spec file is wrong/incorrect on > my machine does this work properly on others? (Using Wl didn't do > much better either, passing -L/lib/mingw to it directly still places > it after the dllcrt2.o so the linker never finds it). > > What does your's show? gcc -mno-cygwin -v -shared -export-all dll.c -o hello.dll -Wl,--out-implib,libhello.dll.a ... /usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../../i686-pc-mingw32/bin/ld.exe --shared -Bdynamic -e _DllMainCRTStartup AT 12 -o hello.dll -export-all /usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../../i686-pc-mingw32/lib/dllcrt2 .o /usr/lib/gcc-lib/i686-pc-mingw32/3.2/crtbegin.o -L/usr/lib/gcc-lib/i686-pc-m ingw32/3.2 -L/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../../../i686-pc-mingw3 2/lib -L/usr/lib/gcc-lib/i686-pc-mingw32/3.2/../../.. /var/tmp/ccqxxSSp.o --out-implib libhello.dll.a -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -lmingw32 -luse r32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lm svcrt /usr/lib/gcc-lib/i686-pc-mingw32/3.2/crtend.o Using gcc-3.2-3. Max. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/