Go Down

Topic: Error in Ethernet library after ATMEGA328 change (Read 531 times) previous topic - next topic

Thomas Jespersen

Hi.
After I've changed the board to Duemillanove ATMEGA328 Arduino IDE is giving me Ethernet library compiling errors.
When I start the Arduino IDE it gives me the errors, also when I try to compile some code where I use the ethernet board, it gives me the errors!

Code: [Select]
In file included from Client.cpp:3:
utility/w5100.h:274: warning: 'setSn_MSS' initialized and declared 'extern'
utility/w5100.h:274: error: variable or field 'setSn_MSS' declared void
utility/w5100.h:274: error: 'SOCKET' was not declared in this scope
utility/w5100.h:274: error: expected primary-expression before 'Sn_MSSR0'
utility/w5100.h:275: warning: 'setSn_PROTO' initialized and declared 'extern'
utility/w5100.h:275: error: variable or field 'setSn_PROTO' declared void
utility/w5100.h:275: error: 'SOCKET' was not declared in this scope
utility/w5100.h:275: error: expected primary-expression before 'proto'
utility/w5100.h:276: warning: 'getSn_IR' initialized and declared 'extern'
utility/w5100.h:276: error: 'SOCKET' was not declared in this scope
utility/w5100.h:277: warning: 'getSn_SR' initialized and declared 'extern'
utility/w5100.h:277: error: 'SOCKET' was not declared in this scope
utility/w5100.h:278: warning: 'getSn_TX_FSR' initialized and declared 'extern'
utility/w5100.h:278: error: 'SOCKET' was not declared in this scope
utility/w5100.h:279: warning: 'getSn_RX_RSR' initialized and declared 'extern'
utility/w5100.h:279: error: 'SOCKET' was not declared in this scope
utility/w5100.h:280: warning: 'setSn_DHAR' initialized and declared 'extern'
utility/w5100.h:280: error: variable or field 'setSn_DHAR' declared void
utility/w5100.h:280: error: 'SOCKET' was not declared in this scope
utility/w5100.h:280: error: expected primary-expression before '*' token
utility/w5100.h:280: error: 'addr' was not declared in this scope
utility/w5100.h:281: warning: 'setSn_DIPR' initialized and declared 'extern'
utility/w5100.h:281: error: variable or field 'setSn_DIPR' declared void
utility/w5100.h:281: error: 'SOCKET' was not declared in this scope
utility/w5100.h:281: error: expected primary-expression before '*' token
utility/w5100.h:281: error: 'addr' was not declared in this scope
utility/w5100.h:282: warning: 'setSn_DPORT' initialized and declared 'extern'
utility/w5100.h:282: error: variable or field 'setSn_DPORT' declared void
utility/w5100.h:282: error: 'SOCKET' was not declared in this scope
utility/w5100.h:282: error: expected primary-expression before '*' token
utility/w5100.h:282: error: 'addr' was not declared in this scope
utility/w5100.h:283: warning: 'getSn_DHAR' initialized and declared 'extern'
utility/w5100.h:283: error: variable or field 'getSn_DHAR' declared void
utility/w5100.h:283: error: 'SOCKET' was not declared in this scope
utility/w5100.h:283: error: expected primary-expression before '*' token
utility/w5100.h:283: error: 'addr' was not declared in this scope
utility/w5100.h:284: warning: 'getSn_DIPR' initialized and declared 'extern'
utility/w5100.h:284: error: variable or field 'getSn_DIPR' declared void
utility/w5100.h:284: error: 'SOCKET' was not declared in this scope
utility/w5100.h:284: error: expected primary-expression before '*' token
utility/w5100.h:284: error: 'addr' was not declared in this scope
utility/w5100.h:285: warning: 'getSn_DPORT' initialized and declared 'extern'
utility/w5100.h:285: error: variable or field 'getSn_DPORT' declared void
utility/w5100.h:285: error: 'SOCKET' was not declared in this scope
utility/w5100.h:285: error: expected primary-expression before '*' token
utility/w5100.h:285: error: 'addr' was not declared in this scope
utility/w5100.h:286: warning: 'setSn_TTL' initialized and declared 'extern'
utility/w5100.h:286: error: variable or field 'setSn_TTL' declared void
utility/w5100.h:286: error: 'SOCKET' was not declared in this scope
utility/w5100.h:286: error: expected primary-expression before 'ttl'
utility/w5100.h:294: warning: 'send_data_processing' initialized and declared 'extern'
utility/w5100.h:294: error: variable or field 'send_data_processing' declared void
utility/w5100.h:294: error: 'SOCKET' was not declared in this scope
utility/w5100.h:294: error: expected primary-expression before '*' token
utility/w5100.h:294: error: 'data' was not declared in this scope
utility/w5100.h:294: error: expected primary-expression before 'len'
utility/w5100.h:295: warning: 'recv_data_processing' initialized and declared 'extern'
utility/w5100.h:295: error: variable or field 'recv_data_processing' declared void
utility/w5100.h:295: error: 'SOCKET' was not declared in this scope
utility/w5100.h:295: error: expected primary-expression before '*' token
utility/w5100.h:295: error: 'data' was not declared in this scope
utility/w5100.h:295: error: expected primary-expression before 'len'
utility/w5100.h:296: warning: 'read_data' initialized and declared 'extern'
utility/w5100.h:296: error: variable or field 'read_data' declared void
utility/w5100.h:296: error: 'SOCKET' was not declared in this scope
utility/w5100.h:296: error: expected primary-expression before '*' token
utility/w5100.h:296: error: 'src' was not declared in this scope
utility/w5100.h:296: error: expected primary-expression before '*' token
utility/w5100.h:296: error: 'dst' was not declared in this scope
utility/w5100.h:296: error: expected primary-expression before 'len'
utility/w5100.h:297: warning: 'write_data' initialized and declared 'extern'
utility/w5100.h:297: error: variable or field 'write_data' declared void
utility/w5100.h:297: error: 'SOCKET' was not declared in this scope
utility/w5100.h:297: error: expected primary-expression before '*' token
utility/w5100.h:297: error: 'src' was not declared in this scope
utility/w5100.h:297: error: expected primary-expression before '*' token
utility/w5100.h:297: error: 'dst' was not declared in this scope
utility/w5100.h:297: error: expected primary-expression before 'len'
In file included from Client.cpp:4:
utility/socket.h:11: warning: 'socket' initialized and declared 'extern'
utility/socket.h:11: error: 'SOCKET' was not declared in this scope
utility/socket.h:11: error: expected primary-expression before 'protocol'
utility/socket.h:11: error: expected primary-expression before 'port'
utility/socket.h:11: error: expected primary-expression before 'flag'
utility/socket.h:11: error: initializer expression list treated as compound expression
utility/socket.h:12: warning: 'close' initialized and declared 'extern'
utility/socket.h:12: error: variable or field 'close' declared void
utility/socket.h:12: error: 'SOCKET' was not declared in this scope
utility/socket.h:13: warning: 'connect' initialized and declared 'extern'
utility/socket.h:13: error: 'SOCKET' was not declared in this scope
utility/socket.h:13: error: expected primary-expression before '*' token
utility/socket.h:13: error: 'addr' was not declared in this scope
utility/socket.h:13: error: expected primary-expression before 'port'
utility/socket.h:13: error: initializer expression list treated as compound expression
utility/socket.h:14: warning: 'disconnect' initialized and declared 'extern'
utility/socket.h:14: error: variable or field 'disconnect' declared void
utility/socket.h:14: error: 'SOCKET' was not declared in this scope
utility/socket.h:15: warning: 'listen' initialized and declared 'extern'
utility/socket.h:15: error: 'SOCKET' was not declared in this scope
utility/socket.h:16: warning: 'send' initialized and declared 'extern'
utility/socket.h:16: error: 'SOCKET' was not declared in this scope
utility/socket.h:16: error: expected primary-expression before 'const'
utility/socket.h:16: error: expected primary-expression before 'len'
utility/socket.h:16: error: initializer expression list treated as compound expression
utility/socket.h:17: warning: 'recv' initialized and declared 'extern'
utility/socket.h:17: error: 'SOCKET' was not declared in this scope
utility/socket.h:17: error: expected primary-expression before '*' token
utility/socket.h:17: error: 'buf' was not declared in this scope
utility/socket.h:17: error: expected primary-expression before 'len'
utility/socket.h:17: error: initializer expression list treated as compound expression
utility/socket.h:18: warning: 'sendto' initialized and declared 'extern'
utility/socket.h:18: error: 'SOCKET' was not declared in this scope
utility/socket.h:18: error: expected primary-expression before 'const'
utility/socket.h:18: error: expected primary-expression before 'len'
utility/socket.h:18: error: expected primary-expression before '*' token
utility/socket.h:18: error: 'addr' was not declared in this scope
utility/socket.h:18: error: expected primary-expression before 'port'
utility/socket.h:18: error: initializer expression list treated as compound expression
utility/socket.h:19: warning: 'recvfrom' initialized and declared 'extern'
utility/socket.h:19: error: 'SOCKET' was not declared in this scope
utility/socket.h:19: error: expected primary-expression before '*' token
utility/socket.h:19: error: 'buf' was not declared in this scope
utility/socket.h:19: error: expected primary-expression before 'len'
utility/socket.h:19: error: expected primary-expression before '*' token


This is most of the errors... Why does it happen - and how can it be fixed?
Need any help with your electronics projects?
TKJ Electronics, a consultancy company located in Denmark (Europe), has the required ex

Go Up