This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Link Errors with Net Functions
- To: Sergey Okhapkin <sos at prospect dot com dot ru>
- Subject: Re: Link Errors with Net Functions
- From: Jim Balter <jqb at netcom dot com>
- Date: Wed, 12 Mar 1997 03:20:19 -0800
- CC: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>, "'Michael Godfrey'" <godfrey at io dot nosc dot mil>
- Organization: JQB Enterprises
- References: <01BC2ED8.93B24A00@gater.krystalbank.msk.ru>
Sergey Okhapkin wrote:
>
> Michael Godfrey wrote:
> > I'm having trouble linking with the htons(), htonl(), ntohs(), and
> > ntohl() host to/from network byte order functions.
>
> Did You include <arpa/inet.h>?
<arpa/inet.h> includes <netinet.h/in.h> which includes <cygwin32/in.h>
which includes <asm/byteorder.h> which defines htonl etc.,
but none of those include files manage to enclose the definition
in extern "C" { ... }. Bugga bugga bugga.
Michael, try
extern "C" {
#include <arpa/inet.h>
}
--
<J Q B>
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".