icmp_ping library not compiling

Hi

I tried version 2 and the development version.
I imported the library, opened up the examples .ino file.
I'm unable to get this to work.

The exception states the following :

C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp: In member function 'void ICMPEcho::serialize(uint8_t*) const':
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:71: error: 'htons' was not declared in this scope
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:74: error: 'htonl' was not declared in this scope
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp: In member function 'void ICMPEcho::deserialize(const uint8_t*)':
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:84: error: 'ntohs' was not declared in this scope
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:87: error: 'ntohl' was not declared in this scope
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp: In member function 'void ICMPPing::receiveEchoReply(const ICMPEcho&, ICMPEchoReply&)':
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:173: error: invalid conversion from 'uint8_t*' to 'uint16_t'
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:173: error: initializing argument 2 of 'void W5100Class::read_data(SOCKET, uint16_t, volatile uint8_t*, uint16_t)'
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:181: error: invalid conversion from 'uint8_t*' to 'uint16_t'
C:\Users\Christophe\Documents\Arduino\libraries\icmp_ping\ICMPPing.cpp:181: error: initializing argument 2 of 'void W5100Class::read_data(SOCKET, uint16_t, volatile uint8_t*, uint16_t)'

Is there anyone who has battled this problem aswel or has a solution to it?
Any help is greatly appreciated!

Grt

Looks like standard network library functions that are not being included. They appear to be part of the Ethernet library. Are you including <Ethernet.h>? If so you might also have to include <Ethernet/util.h>.

I tried version 2 and the development version.

Did you get them on sale at WalMart? If so, take them back. If not, you might want to mention some things like where you got them, which version of the IDE you are using, which Arduino you are compiling for, and which OS you are using. Oh, and POST YOUR CODE!

Someone was just complaining about this recently, and actually posted a link. I downloaded the library at that link and when I compile the Ping.ino example, I only get one "error":

Binary sketch size: 9,374 bytes (of a 32,256 byte maximum)

Hi Paul

I'm using 1.5.6-r2 , windows 8 x64.
My code: the sample code included with the sample.

christophedm:
I'm using 1.5.6-r2 , windows 8 x64.
My code: the sample code included with the sample.

The Arduino download page says:
"Arduino 1.5.6-r2 BETA (with support for Arduino Yún and Arduino Due boards)"

Are you using an Arduino Yún or Arduino Due? If not, switch to the released version.

Initially I couldn't get the latest version to compile also. Got many of the same error messages. Then I download Version 2 and got it working on my Win 7 machine. BUT when I tried it again and ran the same example and version on my Mac, no go. Go figure?