I am two C files in a project. 1. main.c 2. rtc.c and third one is header file for both in which all prototypes are defined.
I want to use a bit variables named aon and aoff in both files. Now three condition arises
1. i declare extern bit aon,aoff; in header file but it gives error
//ERROR L104: MULTIPLE PUBLIC DEFINITIONSERROR L104: MULTIPLE PUBLIC DEFINITIONSERROR L104: MULTIPLE PUBLIC DEFINITIONSextern bit aon=0,aoff=0;
2. i declare extern bit aon,aoff; in onlyin main file but it gives error
aon and aoff not declared in rtc; and vice versa
3. i declare in both c files than again i gives error
Why?
Sorry, i dont't in details read you message and don't noticed that it is about bit variable. Maybe this link help to you. http://www.keil.com/support/man/docs/c51/c51_le_bitaddrobj.htm
Sorry for my english.:) With best regards Artem Gusev.
Thanks good link you provided.
No matter which language and how it is. Main concern is to convey message. So don't worry about it. But for excel you have to do command on it.