ENC28J60 Ethernet Module Compile error
Posted: 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)'
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)'