delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/01/03/19:51:01

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Robert Graham Merkel <rgmerk AT mira DOT net>
MIME-Version: 1.0
Message-ID: <14449.17505.935541.138129@mira.net>
Date: Tue, 4 Jan 2000 11:52:49 +1100 (EST)
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Linking difficulties with internet functions
X-Mailer: VM 6.72 under 21.1 (patch 8) "Bryce Canyon" XEmacs Lucid
Reply-To: rgmerk AT mira DOT net (Robert Graham Merkel)
User-Agent: SEMI/1.12.1 ([JR] Nonoichi) FLIM/1.12.7 (=?ISO-8859-4?Q?Y=FEza?=
=?ISO-8859-4?Q?ki?=) MULE XEmacs/21.1 (patch 8) (Bryce Canyon)
(i386-debian-linux)

I'm trying to compile a program, and get the following link error
message:

BASH.EXE-2.02$ gcc -o logger logger.c
C:\WINDOWS\TEMP\ccCLzhDq.o(.text+0x1f3):logger.c: undefined reference to `inet_
aton'
collect2: ld returned 1 exit status

Obviously, the function must be defined in the headers, but it's
not being linked in. 

Which library do I need to include to get this function?

TIA

-- 
---------------------------------------------------------------------------
Robert Merkel		                                    rgmerk AT mira DOT net

Humanity has advanced, when it has advanced, not because it has been sober, 
responsible, and cautious, but because it has been playful, rebellious, and 
immature.
		-- Tom Robbins
---------------------------------------------------------------------------

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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