Problem: using class as parameter type

I can't use my class "TactileDisplay" as type.

Output:

In file included from sketch\TactileEngine.h:15:0,

                 from sketch\TactileDisplay.h:6,

                 from sketch\TactileDisplay.cpp:1:

TactileProgressBar.h:13: error: expected ')' before '*' token

     TactileProgressBar(TactileDisplay *, String, double);

                                       ^

TactileProgressBar.h:23: error: 'TactileDisplay' does not name a type

     TactileDisplay * lcd = NULL;

     ^

exit status 1
expected ')' before '*' token

TactileEngine.zip (2.13 KB)

TactileProgressBar.h:13: error: expected ')' before '*' token

Start by fixing the above error.

Mark

BEFORE POSTING A QUESTION READ THIS Read this before posting a programming question ... - Programming Questions - Arduino Forum

Point 6 is a key, this bit

With coding problems, if possible post a "minimal" sketch that demonstrates the problem - not hundreds of lines of code.

is most important.

Do not attach files containing your code many people can't (or like won't) read them. Do some of work to make it easy for us to help you.

Mark

You can not hide from the sketch the fact that it uses a library. The TactileDisplay class uses the TactileEngine header file, which the sketch knows nothing about. The TactileEngine header files uses the TactileProgressBar header file, which the sketch knows nothing about.

Add the two header files to the sketch, and report back on what happens then.