ENC28J60 - UIPEthernet - arduino uip - How to?

Hello,
I am not sure how to add correctly arduino uip library for ENC28J60 into Arduino IDE (I would like to use this library in Arduino IDE 1.5.4).

After several attempts I did, now I got the error messages during compile:

UIPEthernet\Dhcp.cpp.o: In function `DhcpClass::presend_DHCP()':
C:\...\Arduino\libraries\UIPEthernet/Dhcp.cpp:131: multiple definition of `DhcpClass::presend_DHCP()'
Ethernet\Dhcp.cpp.o:C:\...\Arduino-1.0.5\libraries\Ethernet/Dhcp.cpp:133: first defined here

Explanation of error is obvious, but how to fix? I do not want to delete original Ethernet folder.

On my system the current version from https://github.com/bibi21000/arduino_uip does work out of the box on the Arduino IDE 1.0.5 when I removed the "utilities/" part from this line in UIPSmtp.cpp:

#include "utilities/Dns.h"

You shouldn't use and IDE 1.5.x expect if you're developing for the Due or the Yun but then this library doesn't make sense. But the error message was from a 1.0.5 IDE anyway.

Install the library in a folder libraries inside your sketch folder. Don't include both "Ethernet.h" and "UIPEthernet.h" in your sketch.

looks as if you did include Ethernet.h and UIPEthernet.h at the same time (or at least it seems the Ethernet-lib has been compiled to the same tmp-directory before compiling the current sketch).

in respect to Arduino 1.5.5: this is supported since a few days (see UIPEthernet-releases. DUE is supported as well. Using Arduino 1.5.5 you can install the library using the IDEs install-function (see description for UIPEthernet 1.51 on the releases-page for details).

  • Norbert