We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
C:\KEIL\C51\INC\REG51.H(13): error C129: missing ';' before 'sfr'
Just wondering any ideas about this error. Can't find any missing ';'
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...
could it, perchance, be the first non-comment line after the header comment? when I lose a few of the strands of the hair I have left hunting for something like this, it is often because the cause is in the preceding included file.
Erik