This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: inet_aton


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]