Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Compiling Sketch #22

Closed
yvesniessen opened this issue Apr 22, 2016 · 1 comment
Closed

Error Compiling Sketch #22

yvesniessen opened this issue Apr 22, 2016 · 1 comment

Comments

@yvesniessen
Copy link

I got an error compiling my sketch.
Could you help me?

Arduino: 1.6.8 (Windows 7), Board: "Arduino Duemilanove or Diecimila, ATmega328"

RESTduino.ino: In function 'void loop()':
RESTduino.ino:230:31: warning: NULL used in arithmetic [-Wpointer-arith]

         else if(pin[0] != NULL) {

                           ^

sketch\libraries\EthernetBonjour\utility\EthernetCompat.cpp: In function 'void ethernet_compat_read_data(int, uint8_t_, uint8_t_, uint16_t)':

sketch\libraries\EthernetBonjour\utility\EthernetCompat.cpp:121:41: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'uint16_t {aka unsigned int}' [-fpermissive]

W5100.read_data(socket, src, dst, len);

                                     ^

In file included from C:\Program Files (x86)\Arduino\libraries\Ethernet\src/utility/socket.h:4:0,

             from sketch\libraries\EthernetBonjour\utility\EthernetCompat.cpp:27:

C:\Program Files (x86)\Arduino\libraries\Ethernet\src/utility/w5100.h:142:8: error: initializing argument 2 of 'void W5100Class::read_data(SOCKET, uint16_t, volatile uint8_t*, uint16_t)' [-fpermissive]

void read_data(SOCKET s, volatile uint16_t src, volatile uint8_t * dst, uint16_t len);

    ^

exit status 1
Error compiling for board Arduino Duemilanove or Diecimila.

@yvesniessen
Copy link
Author

duplicate of issue #21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant