public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* problem using gcc
@ 2001-12-01 14:33 Cindy Chung
  2001-12-01 15:18 ` Robert Collins
  0 siblings, 1 reply; 2+ messages in thread
From: Cindy Chung @ 2001-12-01 14:33 UTC (permalink / raw)
  To: cygwin

Hi,

I'm very new at this stuff and I can't seem to figure
out why the gcc compiler is not working. It seems from
the error that it can't find the standard library?

I really appreciate any assistance!

---------------------------
Administrator@VAIO ~
$ gcc -o server server.c -lnsl -lsocket
server.c: In function `main':
server.c:61: warning: passing arg 5 of `recvfrom' from
incompatible pointer type

server.c:74: warning: passing arg 5 of `sendto' from
incompatible pointer type
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
cann
ot find -lnsl
collect2: ld returned 1 exit status


Cindy

__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

--
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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: problem using gcc
  2001-12-01 14:33 problem using gcc Cindy Chung
@ 2001-12-01 15:18 ` Robert Collins
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Collins @ 2001-12-01 15:18 UTC (permalink / raw)
  To: Cindy Chung, cygwin


----- Original Message -----
From: "Cindy Chung" <my_nyu_mail@yahoo.com>

> Hi,
>
> I'm very new at this stuff and I can't seem to figure
> out why the gcc compiler is not working. It seems from
> the error that it can't find the standard library?

libnsl is not a standard library. And yes, you are correct that it
cannot find it.

Rob


--
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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-12-01 23:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-01 14:33 problem using gcc Cindy Chung
2001-12-01 15:18 ` Robert Collins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).