Subject: Link Errors with Net Functions
From: [email-masked] (Michael Godfrey)

11 Mar 1997 17:56:16 -0800
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Original-To: [email-masked]
Original-Cc: [email-masked] (Michael Godfrey)
X-Mailer: ELM [version 2.4 PL24 PGP6]
Original-Sender: [email-masked]

I'm having trouble linking with the htons(), htonl(), ntohs(), and
ntohl() host to/from network byte order functions.

The compile is clean, and although these functions reside in cygwin.dll,
I still get the following type of error message at link time:

     ...libwhatever.a(NetInt.o): In function `NetInt::write(char *)':
     .../NetInt.cc:20: undefined reference to `htonl(unsigned long)'

Anyone encountered this before?  Any help will be greatly appreciated.
Thanks.

-Mike Godfrey ([email-masked])
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".