Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 2 Jul 2003 19:11:28 +0100
From: Elfyn McBratney <elfyn@cygwin.com>
X-X-Sender: elfyn@ellixia
Reply-To: cygwin@cygwin.com
To: Martin Gainty <mgainty@hotmail.com>
cc: cygwin@cygwin.com, Elfyn McBratney <emcb_exposure@hotmail.com>
Subject: Re: inet_addr library
In-Reply-To: <Law10-OE36TGHhxdQwU0001dcda@hotmail.com>
Message-ID: <Pine.CYG.4.55.0307021909550.536@ellixia>
References: <Law10-OE36TGHhxdQwU0001dcda@hotmail.com>
Mail-Followup-To: cygwin@cygwin.com
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Wed, 2 Jul 2003, Martin Gainty wrote:

> $
> GCC -enable-stdcall-fixup -L/cygdrive/f/slp/openslp-1.1.3/common/.libs/test
> S
> LPReg.c slp_property.o slp_message.o libslp_reg.o libslp_handle.o
> libslp_proper
> ty.o slp_linkedlist.o slp_pid.o libslp_network.o libslp_knownda.o
> libslp_parse.
> o slp_compare.o slp_xid.o slp_buffer.o slp_network.o slp_iface.o
> slp_xcast.o -l
> commonslpd -o SLPReg.exe
> slp_iface.o(.text+0x24f):slp_iface.c: undefined reference to `_inet_addr@4'
>
> Which comm library contains inet_addr@4?

Your link line is mashed. You need to do something liek

  gcc [...other flags...] [object files] -o file.exe -L/path/to/dir -lcommonslpd

Yo *must* add libraries to the end of the link line.

Elfyn
-- 


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

