Help with libraries and project files and locations

Hello all.

I am in a bit of a pickle. I have taken over a project that a co worker had started using arduino. Now he helped me get set up before he left, and things were working fine.

My company has since been bought out and IT removed the domain from my computer and some wonky things happened and now I'm back at the beginning with some library errors.

If I recall correctly, I need to put my project file in the arduino location?
C:\arduino-1.0.3-windows\arduino-1.0.3\projectname

And the libraries go in their own dedicated folder in:
C:\arduino-1.0.3-windows\arduino-1.0.3\libraries

This is what I've done and I'm getting these errors:
projectname:53: error: wiring.h: No such file or directory
projectname.ino: In function 'void setup()':
projectname:107: error: 'Serial1' was not declared in this scope

I believe these are linker or library issues.

Let me know if you see any obvious issues here.

Thanks muchly.

If I recall correctly, I need to put my project file in the arduino location?
C:\arduino-1.0.3-windows\arduino-1.0.3\projectname

No.

And the libraries go in their own dedicated folder in:
C:\arduino-1.0.3-windows\arduino-1.0.3\libraries

No.


Start up the IDE, press Ctrl+comma to bring up the preferences.

The first thing is your "sketchbook location". In my case it is:

C:\Documents and Settings\Nick\My Documents\Arduino

That is where your code (project file) goes. It should be in a folder. (eg. My_Project.ino inside My_Project folder).

The libraries go into a libraries folder inside the sketchbook location. Not where the IDE is installed. If there isn't such a folder, make one. For example, in my case:

C:\Documents and Settings\Nick\My Documents\Arduino\libraries

Screamindaemon:
This is what I've done and I'm getting these errors:
projectname:53: error: wiring.h: No such file or directory
projectname.ino: In function 'void setup()':
projectname:107: error: 'Serial1' was not declared in this scope

Looks like you are using a pre-1.0 sketch on a post-1.0 version of Arduino IDE. In 1.0 they stopped using the Wiring names and created Arduino.h. Change your sketch (or library) to use Arduino.h instead of wiring.h.
To use Serial1 you have to select a board that supports it: Leonardo or MEGA, not UNO.

Thanks for the replies. You both triggered memories.

I went hunting in the changes IT made, and fourd "My Documents OLD". There were my old files.

I had to change the board back to the Teensy3.1 that was used, and I was able to compile successfully.

Thanks muchly.