delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/07/19/10:14:53

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Authentication-Warning: bono.reversers.net: stefan owned process doing -bs
Date: Wed, 19 Jul 2000 16:07:38 +0200 (CEST)
From: stefan <stefan AT lkcc DOT org>
X-Sender: stefan AT bono DOT reversers DOT net
To: Matt Minnis <mminnis AT prefres DOT com>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: inet_aton
In-Reply-To: <4.3.1.2.20000718103542.01e45688@mail.prefres.com>
Message-ID: <Pine.LNX.4.10.10007191605480.2433-100000@bono.reversers.net>
MIME-Version: 1.0

On Tue, 18 Jul 2000, Matt Minnis wrote:

> network.o(.text+0x12c):network.c: undefined reference to `inet_aton'
> collect2: ld returned 1 exit status

No, you cannot use it.

I worked around like this, hope that helps.

#ifndef __MINGW32__
  inet_aton (tmp, &newaddr->sin_addr);
#else /* __MINGW32__ */
  newaddr->sin_addr.s_addr = inet_addr (tmp);
#endif /* __MINGW32__ */

Stefan.


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