Go Down

Topic: Problem with NeoCat's Twitter Library (Read 1 time) previous topic - next topic

Mike Mc

Oct 06, 2010, 04:57 pm Last Edit: Oct 06, 2010, 04:59 pm by zooto68 Reason: 1
Trying to use NeoCat's Twitter library and it won't compile under 0021

http://www.arduino.cc/playground/Code/TwitterLibrary#Download

Numerous errors:

Code: [Select]
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:32:42: error: ../Ethernet/utility/types.h: No such file or directory
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:34:40: error: ../Ethernet/utility/spi.h: No such file or directory
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WProgram.h:6,
                from /Applications/Arduino.app/Contents/Resources/Java/libraries/SPI/SPI.h:15,
                from /Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/../Ethernet/utility/w5100.h:14,
                from /Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/../Ethernet/utility/socket.h:4,
                from /Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:33:
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/math.h:439: error: expected unqualified-id before 'double'
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/math.h:439: error: expected `)' before 'double'
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/math.h:439: error: expected `)' before 'double'
In file included from /Applications/Arduino.app/Contents/Resources/Java/libraries/SPI/SPI.h:15,
                from /Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/../Ethernet/utility/w5100.h:14,
                from /Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/../Ethernet/utility/socket.h:4,
                from /Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:33:
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WProgram.h:17: error: declaration of C function 'uint16_t makeWord(byte, byte)' conflicts with
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WProgram.h:16: error: previous declaration 'uint16_t makeWord(uint16_t)' here
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WProgram.h:27: error: declaration of C function 'long int random(long int)' conflicts with
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/stdlib.h:504: error: previous declaration 'long int random()' here
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WProgram.h:28: error: declaration of C function 'long int random(long int, long int)' conflicts with
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/WProgram.h:27: error: previous declaration 'long int random(long int)' here
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp: In member function 'int EthernetDHCPClass::begin(uint8_t*, int)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:115: error: 'iinchip_init' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:116: error: 'setSHAR' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:117: error: 'setSIPR' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:119: error: 'sysinit' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp: In member function 'int EthernetDHCPClass::_startDHCPSession()':
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:145: error: 'SOCK_CLOSED' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:145: error: 'Sn_SR' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:145: error: 'IINCHIP_READ' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:146: error: 'Sn_MR_UDP' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:155: error: 'uint16' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:155: error: expected `;' before 'port'
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:158: error: 'Sn_DIPR0' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:158: error: 'IINCHIP_WRITE' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:163: error: 'Sn_DIPR0' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:163: error: 'IINCHIP_WRITE' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:169: error: 'Sn_DPORT0' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:169: error: 'uint8' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:169: error: 'port' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:169: error: 'IINCHIP_WRITE' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp: In member function 'int EthernetDHCPClass::_sendDhcpMessage(DhcpMessageType_t)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:208: error: 'Sn_TX_WR0' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:208: error: 'IINCHIP_READ' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:234: error: 'vuint8' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:234: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:234: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:234: error: 'write_data' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:242: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:242: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:251: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:251: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:258: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:258: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:265: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:265: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:267: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:267: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:276: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:276: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:278: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:278: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:284: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries/EthernetDHCP/EthernetDHCP.cpp:284: error: expected primary-expression before ')' token
/Applications/Arduino.app/Contents/Resources/Java/libraries


Anyone got this library working in the new IDE yet?

Adrian McEwen

Try adding:

#include <spi.h>

into your sketch.  I haven't moved to 0021 yet myself, but there was discussion about it on the developers mailing list recently and I think that's the required solution.

See http://arduino.cc/pipermail/developers_arduino.cc/2010-September/003249.html for the archive of the discussion.

iMpsMighty

That`s not the solution. I added this one automatically and it didn't help.

mdgrover

Same issue with 0021 - which leaves me kind of stuck since I need 0021 to upload to my Uno...

NeoCat

#4
Oct 24, 2010, 07:44 pm Last Edit: Oct 24, 2010, 07:47 pm by NeoCat Reason: 1
EthernetDNS library by georg kaindl ( http://gkaindl.com/software/arduino-ethernet ), which my Twitter Library depends, doesn't support 0021 yet.

I tried porting the EthernetDNS to 0019 or later, for temporal usage until the official version supports newer IDE.
You can get it from http://www.arduino.cc/playground/Code/TwitterLibrary.
--
NeoCat

mdgrover

Thanks NeoCat! Verified working with an Uno and 0021.

Hi,

I just seem to get:

Quote

connecting ...
failed : code 403


Any ideas?

Thanks,

Ian

PaulS

Did you try to determine what a 403 error code means?

Quote
403 Forbidden
   The request was a legal request, but the server is refusing to respond to it.[2] Unlike a 401 Unauthorized response, authenticating will make no difference.[2]

But why would the server refuse to respond?

Thanks

Ian

PaulS

Quote
But why would the server refuse to respond?

The forum is not a money-making operation. As a result, our crystal ball was re-possessed.

If you want help, your really going to have to provide some details and some history.

What have you done to register with the server so that it knows that it SHOULD respond to you? What code are you using to access the server?

Go Up