Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: From: "Lincoln, W. Terry" To: "'JRSON AT NetZero DOT Net'" Cc: "'Cygwin Mailing List'" Subject: RE: Question about gcc Linker Date: Wed, 25 Aug 1999 18:28:08 -0400 X-Mailer: Internet Mail Service (5.5.2448.0) nt of UTC. > -----Original Message----- > From: JRSON AT NetZero DOT Net [mailto:JRSON AT NetZero DOT Net] > Sent: Wednesday, August 25, 1999 4:41 PM > To: cygwin AT sourceware DOT cygnus DOT com > Subject: Re: Question about gcc Linker > > > MS implibs cannot be linked using current binutils ;-) > > There is NO support in binutils for COMDAT symbols. > > Static MS libraries/objs can be linked using current > binutils, but there are some problems even with that. > combining precompiled static MS libraries/objs (which > assume msv libc/crt functions) with cygwin gcc compiled code > will usually fail, you can't mix runtimes. > > Even using mingw32 some of the startup routines > just aren't there. The only way to guarantee compatibility > is to buy a copy of vc++ compile the libc libcmt etc... > using mingw32 gcc (a Major project in itself !-) and > then link using link.exe. > > On Wed, 25 Aug 1999 12:12:35 -0400, you wrote: > > >On Wed, Aug 25, 1999 at 11:26:31AM -0400, Lincoln, W. Terry wrote: > >>> What additional libraries do i need and how must I adress > them in the > >>> gcc -l option? I always get a 'no such file or directory' > message, when > >>> I try to add a library. > >> > >>You can't link libraries or object files from the Micro$oft > format with > >>Cygwin gcc. Addressing libraries that are Cygwin such as > libXYZ.a is > >>done with the switch -LXYZ on the gcc line. > > BTW -Ldir -lXYZ will link with dir/libXYZ.a > the second switch is small ell. > you will need to copy or link (ln -s) XYZ.lib libXYZ.a > otherwise ld won't be able to find it. > Sorry, yes I knew that, but got my fingers typing before my brain was fully engaged. :-> > > > >That's not entirely true. Many Microsoft libraries work > fine. You should > >be able to just specify them on the command line. > > > >cgf > > ________________________________________________________ > NetZero - We believe in a FREE Internet. Shouldn't you? > Get your FREE Internet Access and Email at > http://www.netzero.net/download/index.html > W. Terry Lincoln \ \ _ / Senior Engineer \ \ |J| / Ultimate Technology Corporation \ _|E|_ a Tridex Company (NASDAQ:trdx) \ |_ S _| mailto:WTerryLincoln AT engineer DOT com \ |U| http://terrylincoln.isonfire.com \ / |S| \ http://www.AngelFire.com/ny/TerryLincoln \ | | \ ICQ# 39362285 \ | | =========================================== ~~~~~ Opinions expressed do not represent the management of UTC. begin 600 Warren Terry Lincoln (E-mail).vcf M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DQI;F-O;&X[5V%R