This is the mail archive of the cygwin@cygwin.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]
Other format: [Raw text]

Fw: help for a newbie C Programmer


> Hi Ronald,
>
> that worked, but i'm now getting 'ld: cannot find -lnsl';
>
> The make file line is now
> ld -dy -G -o libbridge.so bridge.o nwutil.o
> jagsocket.o -Bstatic -lc -IIRC -lnsl
>
> is there anywhere i can get more info or what nsl is and what the
> corresponding libraries are in Cygwin?
>
> by the way, you are right AIX is Unix. I meant to say that I am porting
some
> AIX code onto windows 2k.
>
> Thanks
>
> Jag
>
> ----- Original Message -----
> From: "Ronald Landheer-Cieslak" <blytkerchan@users.sourceforge.net>
> To: <cygwin@cygwin.com>
> Sent: Wednesday, August 13, 2003 12:41 PM
> Subject: Re: help for a newbie C Programmer
>
>
> > On Wed, Aug 13, 2003 at 11:57:23AM +0100, Jag wrote:
> > > I am trying to port some socket code from AIX onto unix.
> > AFAIK, AIX is a UNIX platform..
> >
> > > When I try to link the code I get ' ld: cannot find -lsocket'
> > > The line being executed is :
> > > ld -dy -G -o libbridge.so bridge.o nwutil.o
> > > jagsocket.o -Bstatic -lc -lsocket -lnsl
> > > I have searched for socket.a and nsl.a in the cygwin directory but
they
> > > aren't there.
> > > The makefile works on AIX and I was hoping it would be a straight
> forward
> > > compilation on windows 2k.
> > Try removing -lsocket - IIRC the socket functions are built-in in the
> Cygwin
> > DLL.
> > (You should add this as a test in your configury if you have one).
> >
> > HTH
> >
> > rlc
> >
> > --
> > "The IETF motto is 'rough consensus and running code'"
> >
> >   -- Scott Bradner (Open Sources, 1999 O'Reilly and Associates)
> >
> > --
> > Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> > Problem reports:       http://cygwin.com/problems.html
> > Documentation:         http://cygwin.com/docs.html
> > FAQ:                   http://cygwin.com/faq/
> >
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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