Help compiling problem.

Hello all. I am working with A mega 2560 and seeed Studio 2.8 inch touch shield. The screen works with some samples. But I cannot get this code to compile. I am very new to Arduino and learning as I go. Here is a link to the project I’m trying to get working here is the code with the libraries Every time I go to compile I get this.
JOS_BETA_v2103.ino: In function ‘void loop()’:
JOS_BETA_v2103:256: error: ‘Point’ was not declared in this scope
JOS_BETA_v2103:256: error: expected `;’ before ‘p’
JOS_BETA_v2103:264: error: ‘p’ was not declared in this scope
Is there anyway to fix this and get it to work? Thank you in advance for any help.
I will attach a text file with the full code it is too big to paste it in this post.

This is the line the first error pops up in.

 Point p = ts.getPoint();

This might help some. The code is older than at the above link this just might help
explain the project a little better.

Untitled 2.rtf (37.2 KB)

It compiled without error for me. That suggests that you may have one or more of the library files in the wrong place. Make sure the libraries are in the libraries directory as:


See if that makes a difference.

Thank you for the reply. I am on a Mac not sure if that makes any difference or not. I have the libraries in documents/arduino/libraries

I'm not familiar with the Mac, but you do see the Arduino IDE executable in the Download\Arduino directory, right?

I do It is on my desktop to.

In the IDE, use the File --> Preferences menu sequence and tell us what you see in the Sketchbook Location.

Ok I see /Users/justin-nj9a/Documents/Arduino

Like I said, I'm as dumb as a box of rocks on the Mac, but see what happens if you copy those libraries to the Users/justin-nj9a/Documents/Arduino/libraries directory.


Hello my fellow HAM. Yes that is where the libraries are. I just tried it in virtual box with Windows 7 got it to compile but when uploading presented A whole bunch of new errors that might have something to do with running it in a virtual machine. I might try moving all my libraries out of that directory and just putting in the ones that the programs needs.

Like I said, I don't know where things end up on a Mac, so I can't be of much help.

It looks to be the same as in windows. In Windows 7 it was also put it in my documents Android libraries directory. I'm back on the Mac Side now thought I was making progress I cleared out my library folder just put back in the
The code compiled and uploaded but I just have a white screen.