EthernetDHCP not declared in this scope
Home › Forums › Botanicalls Community › EthernetDHCP not declared in this scope
Tagged: cook, ethernet DHCP
- This topic has 0 replies, 2 voices, and was last updated 13 years ago by macascos.
-
AuthorPosts
-
November 30, 2011 at 7:10 am #1487macascosParticipant
Hi, I think this might be small mistake, but I cant seem to find the solution.
Im getting the error above and the Arduino tries to explain what is going on.
In file included from BotanicallsTwitter2.cpp:3:
/Users/marco/Documents/Arduino/libraries/Twitter/Twitter.h:21:25: error: EthernetDNS.h: No such file or directory
BotanicallsTwitter2.cpp:27:138: error: EthernetDHCP.h: No such file or directory
BotanicallsTwitter2.cpp: In function ‘void setup()’:
BotanicallsTwitter2:103: error: ‘EthernetDHCP’ was not declared in this scope
BotanicallsTwitter2.cpp: In function ‘void loop()’:
BotanicallsTwitter2:142: error: ‘EthernetDHCP’ was not declared in this scope
can you help me out?
thanks
November 30, 2011 at 4:40 pm #1815Rob FaludiKeymasterDid you install the EthernetDHCP library as described in the Customize page? Double-check that, and if you’re sure you’ve got all the libraries where they should be, let us know which version of the Arduino IDE you are using.
December 1, 2011 at 1:51 am #1816macascosParticipantI believe I installed all the libraries. They are all in a folder called libraries inside the Botanicalls folder. I imported them using Sketch/add library
I also added the DHCP files that end .h and cpp.
I erased my Arduino and installed it again.
I get all these errors
In file included from BotanicallsTwitter2.cpp:1:
/Users/marco/Documents/Arduino/libraries/Twitter/Twitter.h:18:17: error: SPI.h: No such file or directory
/Users/marco/Documents/Arduino/libraries/Twitter/Twitter.h:21:25: error: EthernetDNS.h: No such file or directory
BotanicallsTwitter2.cpp:33:138: error: EthernetDHCP.h: No such file or directory
In file included from BotanicallsTwitter2.cpp:1:
/Users/marco/Documents/Arduino/libraries/Twitter/Twitter.h:29: error: cannot declare field ‘Twitter::client’ to be of abstract type ‘Client’
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:7: note: because the following virtual functions are pure within ‘Client’:
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:12: note: virtual size_t Client::write(uint8_t)
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:13: note: virtual size_t Client::write(const uint8_t*, size_t)
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:14: note: virtual int Client::available()
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:15: note: virtual int Client::read()
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:17: note: virtual int Client::peek()
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:18: note: virtual void Client::flush()
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:10: note: virtual int Client::connect(IPAddress, uint16_t)
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:11: note: virtual int Client::connect(const char*, uint16_t)
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:16: note: virtual int Client::read(uint8_t*, size_t)
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:19: note: virtual void Client::stop()
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:20: note: virtual uint8_t Client::connected()
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/Client.h:21: note: virtual Client::operator bool()
BotanicallsTwitter2.cpp: In function ‘void setup()’:
BotanicallsTwitter2.pde:-1: error: ‘EthernetDHCP’ was not declared in this scope
BotanicallsTwitter2.cpp: In function ‘void loop()’:
BotanicallsTwitter2.pde:-1: error: ‘EthernetDHCP’ was not declared in this scope
December 1, 2011 at 2:06 am #1817macascosParticipantI already switched to Arduino 0018, still get same errors.
December 1, 2011 at 2:32 am #1818Rob FaludiKeymasterThis should work. It sounds like your path to the libraries is broken. What’s the current path to, for example, EthernetDNS.h ?
December 1, 2011 at 3:40 am #1819macascosParticipantWould this be the path?
Documents/Arduino/BotanicallsTwitter2/libraries/ArduinoEthernet/EthernetDNS/EthernetDNS.h
December 6, 2011 at 1:53 am #1820macascosParticipantThis seems right no?
December 6, 2011 at 2:41 am #1821Rob FaludiKeymasterNo the correct path would be ~/Documents/Arduino/libraries/ArduinoEthernet/EthernetDNS/EthernetDNS.h
Check the library documentation linked to online.
December 6, 2011 at 7:57 pm #1822macascosParticipantI was following this,
Libraries go into the main Arduino document folder. Here’s some instructions from the Arduino site “To install third-party libraries, create a directory called libraries within your sketchbook directory. Then unzip the library there. For example, to install the Twitter library, its files should be in the/libraries/Twitter sub-folder of your sketchbook folder.”
and I have also tried putting the libraries where you told me.
I have libraries now in both places, but still cannot compile the code.
When I do import library Ethernet, I see no new line at the top like the other libraries. Do you think this might be the issue?
December 6, 2011 at 8:15 pm #1823macascosParticipantIt seems I had to have each library in its own folder within libraries, not within the ArduinoEthernet. Thanks!
However….
-
AuthorPosts
- You must be logged in to reply to this topic.
New kits are here!
Categories
- Announcements (8)
- Press (5)
Pothos Plant Tweets
Flickr Feed
www.flickr.com
|
Meta
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.