I am using code that I got from a project in project hub. There is an error that I cannot figure out. I looked into the touchscreen example codes and I didn't see this error line of code in any of them.
I have a comment on the project site that I am waiting for a reply on. Any additional help would be appreciated.
tries to define a variable t of the type "struct ts". But ts is not a structure, it is already a variable name (cannot be used as a type name anymore).
Sure, yes (I saw and have studied your code), but "ts" is a variable name, not a type name.
Do you get it?
"ts" is already a name for a variable, you cannot use anymore for a type name. The line with code as:
struct ts t;
looks wrong. What do you want to define? ("ts" is not a struct type anymore, "ts" was defined as a variable name, there is not a struct definition named as "ts"...).
What is defined already - cannot be used anymore as a type, with the same name.
It is like:
"how are you called?" = ts
"create a structured instance out of my name ts as t" = struct ts t;
Would you be able to understand what to do?
"ts" is the name of a variable or the name of a structure, but not both at the same time. "Do you mean the variable ts or the type name ts?" Is your family name "ts" or is your sex "ts"?