CW10.1 with 9S08SH16

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

CW10.1 with 9S08SH16

跳至解决方案
984 次查看
Nouchi
Senior Contributor II

Hello,

 

Is it a bug or I don't understand anything?

 

#define MYCONST   4108ULword G100;   // Global varvoid myFunc(void){dword tempVar;  G100 = (word)((tempVar * MYCONST) / 1023);  // <= C2801}

Editor complain about syntax error, and the compiler says  "C2801 ')' missing" .

What's the problem?

 

Emmanuel

 

 



标签 (1)
标记 (1)
0 项奖励
回复
1 解答
601 次查看
CrasyCat
Specialist III

Hello

 

Did you take a look at the preprocessor listing file?

Anything strange in there?

 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
2 回复数
602 次查看
CrasyCat
Specialist III

Hello

 

Did you take a look at the preprocessor listing file?

Anything strange in there?

 

CrasyCat

0 项奖励
回复
602 次查看
Nouchi
Senior Contributor II

Hi,

 

Shame on me,  newbie mistake !!!!

A semicolon was lying outside editor window after MYCONST definition.

Preprocessor output file is very interesting (-Lp option).

 

thank you  CrasyCat, for opening my eyes.

 

0 项奖励
回复