| ??? 03/23/06 11:29 Read: times |
#112858 - Not too helpful Responding to: ???'s previous message |
Sanoop Thorai said:
TEST2.C(12): error C141: syntax error near 'sbit'
TEST2.C(12): error C202: 'flag_ov': undefined identifier Great - but, without seeing your code, how do we[1] know what's on line 12?! And, possibly more importantly, what was on lines 1-10!! Again: Remember, the compiler reports an error at the point when it detects that something's wrong; the actual mistake could have occurred earlier - for example, a missing semicolon, brace, or parenthesis on a previous statement... This compiles fine: unsigned char bdata flag;
sbit flag_ov = flag^0;
void main( void )
{
}Please read Jon Ledbetter's Noob's Guide to 8052.com - especially before posting code, as it shows you how to do that. http://www.8052.com/forum/read.phtml?id=111100 [1] "we" = collectively, everyone who happens to be reading this |
| Topic | Author | Date |
| c programming | 01/01/70 00:00 | |
| Read the C51 user's guide | 01/01/70 00:00 | |
| rtfm | 01/01/70 00:00 | |
| embdd c programming | 01/01/70 00:00 | |
| What else would it do? | 01/01/70 00:00 | |
| Andy, why did you answer | 01/01/70 00:00 | |
forgiven | 01/01/70 00:00 | |
| bit data type | 01/01/70 00:00 | |
| Read the error message carefullly | 01/01/70 00:00 | |
| error message | 01/01/70 00:00 | |
| Not too helpful | 01/01/70 00:00 | |
| You seem not to have | 01/01/70 00:00 |



