This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: inet_addr library
- From: Elfyn McBratney <elfyn at cygwin dot com>
- To: Martin Gainty <mgainty at hotmail dot com>
- Cc: cygwin at cygwin dot com, Elfyn McBratney <emcb_exposure at hotmail dot com>
- Date: Wed, 2 Jul 2003 19:11:28 +0100
- Subject: Re: inet_addr library
- References: <Law10-OE36TGHhxdQwU0001dcda@hotmail.com>
- Reply-to: cygwin at cygwin dot com
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/