Page 1 of 1

ENC28J60 Ethernet Module Compile error

Posted: Tue Jul 24, 2012 9:51 am
by trigx300
Hi, I'm having problems with the ENC28J60 Ethernet Module + Arduino Uno R3.

Here's what I've done:

I downloaded the ENC28J60 library from "http://www.geeetech.com/enc28j60-ethern ... p-263.html" and unzipped the ENC28J60 folder into "C:\arduino-1.0.1-windows\arduino-1.0.1\libraries\"

Then I removed the "Ethernet" folder from "C:\arduino-1.0.1-windows\arduino-1.0.1\libraries\"

I loaded the "Chat Server" example that comes with it, and tried to compile it.

Here's the error message:

In file included from C:\arduino-1.0.1-windows\arduino-1.0.1\libraries\ENC28J60/Ethernet.h:5,
from ChatServer.cpp:8:
C:\arduino-1.0.1-windows\arduino-1.0.1\libraries\ENC28J60/Client.h:22: error: conflicting return type specified for 'virtual void Client::write(uint8_t)'
C:\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'
C:\arduino-1.0.1-windows\arduino-1.0.1\libraries\ENC28J60/Client.h:24: error: conflicting return type specified for 'virtual void Client::write(const uint8_t*, size_t)'
C:\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:50: error: overriding 'virtual size_t Print::write(const uint8_t*, size_t)'
In file included from C:\arduino-1.0.1-windows\arduino-1.0.1\libraries\ENC28J60/Ethernet.h:6,
from ChatServer.cpp:8:
C:\arduino-1.0.1-windows\arduino-1.0.1\libraries\ENC28J60/Server.h:16: error: conflicting return type specified for 'virtual void Server::write(uint8_t)'
C:\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'
C:\arduino-1.0.1-windows\arduino-1.0.1\libraries\ENC28J60/Server.h:18: error: conflicting return type specified for 'virtual void Server::write(const uint8_t*, size_t)'
C:\arduino-1.0.1-windows\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:50: error: overriding 'virtual size_t Print::write(const uint8_t*, size_t)'

Re: ENC28J60 Ethernet Module Compile error

Posted: Wed Jul 25, 2012 10:24 am
by techsupport
Hi friend:

Please refer to the wiki page about ENC28J60 http://www.geeetech.com/wiki/index.php/ ... net_Module

and use 023 IDE.

Regards;
techsupport

Re: ENC28J60 Ethernet Module Compile error

Posted: Sat Dec 14, 2013 5:12 am
by treii28
Is this library ever going to be upgraded? It seems to be built for a pre-release version of the arduino IDE. They are up to v1.0.5 already! Can we please get this thing updated to work with current software???

SW

Re: ENC28J60 Ethernet Module Compile error

Posted: Tue Dec 17, 2013 9:00 am
by techsupport
hi
guys
you should delete the previous library file and the add the ethernet library,and then complide it.