expected identifier or '(' before numeric constant

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

expected identifier or '(' before numeric constant

4,128 次查看
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 回复

3,164 次查看
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 项奖励
回复