ENC28J60 Ethernet Module Compile error

Post Reply
trigx300
Posts: 1
Joined: Tue Jul 24, 2012 9:42 am

ENC28J60 Ethernet Module Compile error

Post by trigx300 » Tue Jul 24, 2012 9:51 am

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)'

User avatar
techsupport
Site Admin
Posts: 210
Joined: Sat Mar 03, 2012 2:32 pm

Re: ENC28J60 Ethernet Module Compile error

Post by techsupport » Wed Jul 25, 2012 10:24 am

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
Your real trustworthy partner in China!!
Email: forum@geeetech.com

treii28
Posts: 5
Joined: Sat Dec 14, 2013 5:04 am

Re: ENC28J60 Ethernet Module Compile error

Post by treii28 » Sat Dec 14, 2013 5:12 am

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

User avatar
techsupport
Site Admin
Posts: 210
Joined: Sat Mar 03, 2012 2:32 pm

Re: ENC28J60 Ethernet Module Compile error

Post by techsupport » Tue Dec 17, 2013 9:00 am

hi
guys
you should delete the previous library file and the add the ethernet library,and then complide it.
Your real trustworthy partner in China!!
Email: forum@geeetech.com

Post Reply