inet_aton

stefan stefan@lkcc.org
Wed Jul 19 07:14:00 GMT 2000


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@sourceware.cygnus.com



More information about the Cygwin mailing list