Error Messages in Arduino IDE [SOLVED]

I am very green to creating a compiling environment so please bare with me.

I'm trying to compile the time/clock example but I get these error messages. Any suggestions on what I should be doing?

WString.cpp:30:1: error: prototype for ‘String::String(int)’ does not match any in class ‘String’
/usr/share/arduino/hardware/arduino/cores/arduino/WString.h:39:5: error: candidates are: String::String(long unsigned int, int)
/usr/share/arduino/hardware/arduino/cores/arduino/WString.h:38:5: error: String::String(long int, int)
/usr/share/arduino/hardware/arduino/cores/arduino/WString.h:37:5: error: String::String(unsigned int, int)
/usr/share/arduino/hardware/arduino/cores/arduino/WString.h:36:5: error: String::String(int, int)
/usr/share/arduino/hardware/arduino/cores/arduino/WString.h:35:5: error: String::String(unsigned char)

TimeRTCLog_2.pde (3.19 KB)

please bare with me.

Never on a first date.

There look to be an awful lot of spaces in that first #include.
Why didn't you post your code?

Rough date.

I erased my linux user login. I'll post the code later when I get back to my workstation.

I just added the *.pde file

The Time library is installed in the wrong place.

What version of the IDE are you using?

That sketch does not reference the String class, so it's hard to see what your problem is. With the Time library in the correct place, using 1.0, and with the include statement fixed, I get only this "error" message:

Binary sketch size: 9220 bytes (of a 258048 byte maximum)

I don't understand why you have the WString files in tabs. Are they in your sketch folder?

PaulS:
The Time library is installed in the wrong place.

What version of the IDE are you using?

That sketch does not reference the String class, so it's hard to see what your problem is. With the Time library in the correct place, using 1.0, and with the include statement fixed, I get only this "error" message:

Binary sketch size: 9220 bytes (of a 258048 byte maximum)

I'm using 0022ubuntu0.1.

I'm confused on where I'm supposed to save my sketchbooks and where Arduino looks for them.

I've attached a few screenshots for reference.

arduino_default.png

user_sketchbook.png

dxw00d:
I don't understand why you have the WString files in tabs. Are they in your sketch folder?

I thought it needed that library.

Get rid of the WString files from that directory. The compiler knows where to find WString, if it needs it.

I'm confused on where I'm supposed to save my sketchbooks and where Arduino looks for them.

Sketches are saved in the sketchbook (though why the hell they can't properly refer to it as a folder/directory like the OS does escapes me). There is a folder/directory (or should be) in that sketchbook/folder/directory called libraries, where user-downloaded libraries are to be installed.

Saving sketches and saving libraries are two distinct activities.

OK, I think I got it working. I had to copy the custom library into

/usr/share/arduino/libraries

using a root level account.

Arduino in Ubuntu expects to see the folder (in this example Time) then the files inside the folder. I tried to make a sub directory but it did not detect the libraries and gave a bunch of compile errors.

Thanks for all the help!