Page 1 of 1

PostPosted: Fri Jan 19, 2001 11:29 am
by Velvis
I am trying to compile an applet with a number of includes. I am getting a "syntax error in declaration" when I try to compile my applet using the desktop compiler (3.9). It compiles fine under the PalmOS compiler (3.9) The error is on the top line of this code snippet:

Chandle FCHART_TB_Table, FCHART_LL_Parameters, FCHART_BT_OK,

I just recently reinstalled the desktop compiler and have not used it in a while, so perhaps I am doing something wrong.

Any ideas?


PostPosted: Fri Jan 19, 2001 9:48 pm
by s_hart
Chandle is a type declared in the Ccontrols.c file, so you must have

include "Ccontrols.c"

before any line that declares a Chandle variable or include a file that includes it.

PostPosted: Fri Jan 19, 2001 9:50 pm
by Velvis
Dooohhh! (Homer Simpson off)

I new it had to be something I was forgeting.... thanks.