expected identifier or '(' before numeric constant

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

expected identifier or '(' before numeric constant

3,027件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 返信

2,063件の閲覧回数
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 件の賞賛
返信