Ethernet2 Arduino Library Fix on 0017

Arduino — Dillon @ 10:58 pm

arduino_0017
Ethernet2 lib. It’s a lighterweight and better Ethernet class. Head into your ~/Documents/Arduino/libraries (or Windows equivalent) and checkout the SVN project:

$ svn co http://tinkerit.googlecode.com/svn/trunk/Ethernet2%20library/Ethernet2

Now change your sketch to use Ethernet2.h instead of Ethernet.h. Wondeful? No. You’ll get this error in 0017.

'EthernetClass' has not been declared

Ok, the forums have a fix. But it didn’t work for the longest time because I didn’t know what they meant by Server.cpp. There’s two of them! The original or the new one?! If you edit the old one you’ll get this:

Print.cpp:129: first defined here

So:
1. Edit Server.cpp in Ethernet2 to include Ethernet2.h and not Ethernet.h.
2. Delete the Print.cpp and Print.h files from Ethernet2.
3. Compile.
4. Have some yay.

2 Comments »

  1. [...] an Ethernet Shield both from sparkfun. As for software, I’m using the Ethernet2 library (see my previous post about this), the WString library and a homerolled IRC protocol parser. The breadboard’s power [...]

    Pingback by Arduino command protocol - SQUARISM — February 28, 2010 @ 11:41 am
  2. Thanks so much for your help. Your tip saved a hell of a lot of potential aggravation for me.

    Comment by Kevin — September 11, 2010 @ 12:18 am

RSS feed for comments on this post. TrackBack URI

Leave a comment

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2012 SQUARISM | powered by WordPress with Barecity