expected identifier or '(' before numeric constant

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

expected identifier or '(' before numeric constant

2,455 Views
ankurchauhan123
Contributor I

Hi,

I'm getting

error : expected identifier or '(' before numeric constant

on the following line of code:

extern const D4DLCD_FUNCTIONS D4D_LLD_LCD;on the following line of code

D4D_LLD_LCD is define in another header file like: 

#define D4D_LLD_LCD d4dlcd_frame_buffer

what could be the  problem.

Regards

Ankur

Labels (1)
0 Kudos
1 Reply

1,491 Views
bobpaddock
Senior Contributor III

The actual cause is someplace before that line of code, perhaps a header file.

Lint is always worth the investment to find these kinds of errors:

The Leader in Static Analysis for C/C++ -- PC-lint and FlexeLint

I expect they will be raising the price soon when they switch from Lint to Lint+. :-(

0 Kudos