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 Date: Wed, 2 Jul 2003 19:11:28 +0100 From: Elfyn McBratney X-X-Sender: elfyn AT ellixia Reply-To: cygwin AT cygwin DOT com To: Martin Gainty cc: cygwin AT cygwin DOT com, Elfyn McBratney Subject: Re: inet_addr library In-Reply-To: Message-ID: References: Mail-Followup-To: cygwin AT cygwin DOT 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 AT 4' > > Which comm library contains inet_addr AT 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/