the following type of macro defining causing error , what should i do? plz help.
#define LCD_DATA P2
error: 'LCD_DATA': undefined identifier
Well, where do you have your #define?
And have you spelled your #define correctly?
Because the error message indicates that the preprocessor have not seen and replaced LCD_DATA - but the preprocessor will not generate an error for any unknown symbols. The compiler will, if LCD_DATA is still visible after the preprocessing step.
So show us real code that gives the error.