syntax error: token -> 'BitVar' ;

2012-01-20
2013-03-12
  • Dinesh Deva

    Dinesh Deva - 2012-01-20

    please any one help me with this error

    _bit BitVar;

    void main(void)
    {
    BitVar = 0;
    }

    I tried compiling the above program in sdcc using the following instruction

    $ sdcc file_name.c

    this generates the following error

    file_name.c:13: syntax error: token -> 'BitVar' ; column 11

    how I can make this work?

     
  • Maarten Brock

    Maarten Brock - 2012-01-20

    There is no keyword

    _bit
    

    (with one underscore), there is only

    __bit
    

    (with two underscores) and the deprecated

    bit
    

    (no underscore).

     
  • Dinesh Deva

    Dinesh Deva - 2012-01-20

    Thank you Maarten Brock!

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks