This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: what is the matter with gcc in cygwin?


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@yahoo.com>
> [mailto:earnie_boyd@yahoo.com]
> Sent: 06 December 2000 16:57
> To: "Xugang Zhang"<zhxg@263.net>; "cygwin"<cygwin@sources.redhat.com>
> Subject: Re: what is the matter with gcc in cygwin?
> 
> 
> --- Xugang Zhang <zhxg@263.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@yahoo.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@sourceware.cygnus.com
> 
> 



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]