|ARM Technical Support Knowledge Articles|
Applies to: C51 C Compiler
Information in this article applies to:
I have declared an sbit called foo in a source file called bar.c. In another source file, I have tried to declare the sbit as extern:
extern sbit foo;
However, when compiling I get a syntax error. What am I doing wrong?
When declaring an sbit as extern, you must use the 'bit' type. For example:
extern bit foo;
Article last edited on: 2006-10-16 11:56:42
Did you find this article helpful? Yes No
How can we improve this article?