Datalogger - Verify issue "Prototype for 'File::File(SdFile, char*)..."

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
ISAKSENDK
 
Posts: 1
Joined: Thu May 16, 2013 4:06 pm

Datalogger - Verify issue "Prototype for 'File::File(SdFile, char*)..."

Post by ISAKSENDK »

Hi!

just bought an Arduino UNO r3 and the datalogger shield.

I downloaded/copied all the code from the tutorial, but something is wrong..
(http://learn.adafruit.com/adafruit-data ... me-clock-3)

When I try to verify the code, it says the following:

File::File(SdFile f, char *n) {

Prototype for 'File::File(SdFile, char*)' does not match any in class 'File'



File.cpp:21: error: prototype for 'File::File(SdFile, char*)' does not match any in class 'File'
SD.h:26: error: candidates are: File::File(const File&)
SD.h:33: error: File::File()
SD.h:32: error: File::File(SdFile, const char*)
File.cpp:70: error: prototype for 'size_t File::write(const char*)' does not match any in class 'File'
C:\Users\ISAKSEN\Desktop\arduino-1.0.4\hardware\arduino\cores\arduino/Print.h:49: error: candidates are: size_t Print::write(const char*)
SD.h:36: error: virtual size_t File::write(const uint8_t*, size_t)
File.cpp:63: error: virtual size_t File::write(uint8_t)



I'm using the Arduino 1.0.4 software, and have tried with the 0022 version, with the same result.

What might be wrong ?
Really need this to work, because it's for an algae project.

Thanks in advance

-Isaksen
(Denmark)

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Datalogger - Verify issue "Prototype for 'File::File(SdFile, char*)..."

Post by adafruit_support_rick »

It looks like a library installation issue.
Have you installed any other versions of the SD library?
What other libraries have you installed?

Can you post the exact sketch you're trying to compile?

What kind of Arduino are you using?

What board type have you selected in the Arduino IDE?

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”