|
|||||||||||
|
Technical Support Support Resources
Product Information |
Technical SupportC51: DECLARING EXTERNAL SBITSInformation in this article applies to:
SYMPTOMSI 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? RESOLUTIONWhen declaring an sbit as extern, you must use the 'bit' type. For example: extern bit foo; MORE INFORMATIONFORUM THREADSThe following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Monday, October 16, 2006 | ||||||||||
|
|||||||||||