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"<[EMAIL PROTECTED]>
> [mailto:[EMAIL PROTECTED]]
> Sent: 06 December 2000 16:57
> To: "Xugang Zhang"<[EMAIL PROTECTED]>; "cygwin"<[EMAIL PROTECTED]>
> Subject: Re: what is the matter with gcc in cygwin?
> 
> 
> --- Xugang Zhang <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]
> 
> ---         <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 [EMAIL PROTECTED]
> 
> 



--
Want to unsubscribe from this list?
Send a message to [EMAIL PROTECTED]

Reply via email to