CW10.1 with 9S08SH16

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
965件の閲覧回数
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 解決策
582件の閲覧回数
CrasyCat
Specialist III

Hello

 

Did you take a look at the preprocessor listing file?

Anything strange in there?

 

CrasyCat

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
583件の閲覧回数
CrasyCat
Specialist III

Hello

 

Did you take a look at the preprocessor listing file?

Anything strange in there?

 

CrasyCat

0 件の賞賛
返信
583件の閲覧回数
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 件の賞賛
返信