Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: localhost.localdomain: ronald set sender to blytkerchan AT users DOT sourceforge DOT net using -f Date: Wed, 13 Aug 2003 14:20:46 +0200 From: Ronald Landheer-Cieslak To: cygwin AT cygwin DOT com Subject: Re: Fw: help for a newbie C Programmer Message-ID: <20030813122046.GB18207@linux_rln.harvest> References: <00b001c36191$d4f2a5d0$6401a8c0 AT jag750> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00b001c36191$d4f2a5d0$6401a8c0@jag750> User-Agent: Mutt/1.4i X-Disclaimer: I had nothing to do with it - I swear! X-loop: linux_rln.harvest On Wed, Aug 13, 2003 at 12:55:45PM +0100, Jag wrote: > Hi Ronald, > > that worked, but i'm now getting 'ld: cannot find -lnsl'; Each time the linker tells you it can't find -l it means you're missing the corresponding library. Try removing it from the link line and see what happens. If all goes well - coold. If not, you'll have missing references to functions that live in a library somewhere - find that library with a few well-aimed google searches to solve it, or ask here if Googling doesn't work. > 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? Yup - google for it (nsl library or somesuch) > by the way, you are right AIX is Unix. I meant to say that I am porting > some AIX code onto windows 2k. That's what I WAGed. rlc > Thanks > > ----- Original Message ----- > > From: "Ronald Landheer-Cieslak" > > To: > > 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/ -- "Computers may be stupid, but they're always obedient. Well, almost always." -- Larry Wall (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/