One of my functions takes a pointer to a PtTimer_t widget as a parameter.
However, when I compile, there is a parse error in this function’s prototype
(in proto.h called from abmain.c). It seem the error is because the
PtTimer_t type is undefined when the compiler reaches this line.
I can avoid the problem by #including PtTimer.h at the start of proto.h, but
I have to keep adding this #include after every Generate. Obviously,
PtTimer.h is already #included in the source file that uses the timer.
Can anyone tell me how to ensure the compiler knows the necessary types
before it reaches them in proto.h?
Neil Carter Psychology Department
IT Technician University of Wales Swansea
Wales, United Kingdom