| delorie.com/archives/browse.cgi | search |
| From: | jqb AT netcom DOT com (Jim Balter) |
| Subject: | Re: Link Errors with Net Functions |
| 12 Mar 1997 07:34:54 -0800 : | |
| Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
| Distribution: | cygnus |
| Message-ID: | <33269173.611D.cygnus.gnu-win32@netcom.com> |
| References: | <01BC2ED8 DOT 93B24A00 AT gater DOT krystalbank DOT msk DOT ru> |
| Mime-Version: | 1.0 |
| X-Mailer: | Mozilla 3.01Gold (WinNT; I) |
| Original-To: | Sergey Okhapkin <sos AT prospect DOT com DOT ru> |
| Original-CC: | "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>, |
| "'Michael Godfrey'" <godfrey AT io DOT nosc DOT mil> | |
| Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
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 AT cygnus DOT com" with one line of text: "help".
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |