This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error C129

C:\KEIL\C51\INC\REG51.H(13): error C129: missing ';' before 'sfr'

Just wondering any ideas about this error. Can't find any missing ';'

Parents
  • Well - if it's missing, then you won't find it!

    ;-)

    Seriously, though, this is often the result of some other error where the only way the compiler can see to get back "in-sync" with your source text is by assuming that there should've been a semicolon at the point indicated.

    Are there any other errors preceding this?

    In particular, look out for undefined symbols, type names, and preprocessor macros...

    C:\KEIL\C51\INC\REG51.H
    

    In that location, I would expect that to be one of Keil's supplied headers - is it?
    If it is, have you messed with it?

    C:\KEIL\C51\INC\REG51.H(13)
    

    That's pretty early in the file (line 13) - could it, perchance, be the first non-comment line after the header comment?
    If it is, the error may be immediately before the #include line for this header...

Reply
  • Well - if it's missing, then you won't find it!

    ;-)

    Seriously, though, this is often the result of some other error where the only way the compiler can see to get back "in-sync" with your source text is by assuming that there should've been a semicolon at the point indicated.

    Are there any other errors preceding this?

    In particular, look out for undefined symbols, type names, and preprocessor macros...

    C:\KEIL\C51\INC\REG51.H
    

    In that location, I would expect that to be one of Keil's supplied headers - is it?
    If it is, have you messed with it?

    C:\KEIL\C51\INC\REG51.H(13)
    

    That's pretty early in the file (line 13) - could it, perchance, be the first non-comment line after the header comment?
    If it is, the error may be immediately before the #include line for this header...

Children