CW10.1 with 9S08SH16

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

CW10.1 with 9S08SH16

Jump to solution
964 Views
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

 

 



Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
581 Views
CrasyCat
Specialist III

Hello

 

Did you take a look at the preprocessor listing file?

Anything strange in there?

 

CrasyCat

View solution in original post

0 Kudos
Reply
2 Replies
582 Views
CrasyCat
Specialist III

Hello

 

Did you take a look at the preprocessor listing file?

Anything strange in there?

 

CrasyCat

0 Kudos
Reply
582 Views
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 Kudos
Reply