delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/13/07:22:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 13:41:36 +0200
From: Ronald Landheer-Cieslak <blytkerchan AT users DOT sourceforge DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: help for a newbie C Programmer
Message-ID: <20030813114135.GA18207@linux_rln.harvest>
References: <007d01c36189$acf99f00$6401a8c0 AT jag750>
Mime-Version: 1.0
In-Reply-To: <007d01c36189$acf99f00$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 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019