delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/12/07/05:17:29

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <200012071005.eB7A57n08003@florence.pavilion.net>
Date: Thu, 07 Dec 00 10:04:10 +0000
From: "Al Slater"<al DOT slater AT SCLUK DOT COM>
Subject: RE: what is the matter with gcc in cygwin?
To: "'"Xugang Zhang"<zhxg AT 263 DOT net>'"<zhxg AT 263 DOT net>,
"'"cygwin"<cygwin AT sources DOT redhat DOT com>'"<cygwin AT sources DOT redhat DOT com>
MIME-Version: 1.0

You are using a c compiler to compile and link an assembly program.

Try this

as -o t.o t.s 
ld -o t.exe t.o

This assembles t.s into t.o and then links t.o into an executable.

Al Slater

> -----Original Message-----
> From: "Earnie Boyd"<earnie_boyd AT yahoo DOT com>
> [mailto:earnie_boyd AT yahoo DOT com]
> Sent: 06 December 2000 16:57
> To: "Xugang Zhang"<zhxg AT 263 DOT net>; "cygwin"<cygwin AT sources DOT redhat DOT com>
> Subject: Re: what is the matter with gcc in cygwin?
> 
> 
> --- Xugang Zhang <zhxg AT 263 DOT net> wrote:
> > 
> >   why the gcc always says error? the gcc version is 2.95.2-3  
> 
> Sorry, I don't know this answer.
> 
> >   why the gcc ld always link with libcygwin.a ?I don't want 
> it link with
> > libcygwin.a.
> > 
> 
> Using gcc to link always adds default libraries.  If you want 
> to be specific
> about what is linked use ld instead of gcc to do the linking.
> 
> Cheers,
> 
> =====
> Earnie Boyd
> mailto:earnie_boyd AT yahoo DOT com
> 
> ---         <http://earniesystems.safeshopper.com>         ---
> --- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
> ---   Minimalist GNU for Windows <http://www.mingw.org/>   ---
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
> 
> 



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019