Hello
What is the message the linker generates?
CrasyCat
Yeah, I placed the variable "i" in the .h file.
First, I do not use "extern", and the linker note "Link Error : L1818: Symbol - i duplicated in file1.c.o and main.c.o".
Then I added "extern", linker show "Link Error: L1822: Symbol i in file ...file.asm.o is undifined".
I notice the different between your sample and mine:
Declare "i" in the h file as "extern", and be included in the two c file, alse be included in the asm file.
I notice that in the first c file you re-declare the variable "i", then everythink ok!
I just wondered whether the two "i" (file.h and file.c) share the same RAM space?
Could you explare it for me?
Thank you!
I got it!
Thank you again!
Message Edited by rocco on 2006-08-14 02:32 PM