??? 01/10/08 17:17 Read: times |
#149244 - Help! Responding to: ???'s previous message |
Erik, Andy can you show me how would you arrange this, so i can share the variable.h header among the two .c modules? Main.c and Calc.c. I am looking for and reading information as well.
Right now, it is not compiling at all. Thank you, Modules: // First Module, Main Module (Main.c) #include <Reg935.h> #include <stdio.h> #include <String.h> #include <intrins.h> #include "variables.h" Void Main (void) { } : : : : // End of first module /**************************************/ //Second module //Calc.c #include <Reg935.h> #include <stdio.h> #include <String.h> #include <intrins.h> #include “variables.h” Void Main_Calc (void) { } : : : // End of second module /**************************************/ Header: Variables.h (Name of Header) //To be used in Main.c unsigned char data Sec, Min, Hr, Day; //To be used in Calc.c unsigned char code Zero [] = {0x03, 0x61, 0x11, 0x03}; unsigned int Value = 0; unsigned char dat; this variable could be used on both Main.c and Calc.c unsigned char counter = 0, |