Hi , thanks for the tip. However I double checked for global variables and also for function declaration. I have diffenret function names for all the funcitons like EdittastingDoCommand( ), EditWineDoCommand( ),EditCellerDoCommand( ) etc. But when i copy the entrie code in a single main.c it runs with out any problem showing all the forms correctly. That is when i include all the functions mentioned above in one single file it runs with out any problem but when i have two differnt files one main.c for form event handling and the other application's main' WineCellarMain.c file for event loops it gives me linkage errors like the one given below:
Link Error : Main.c: Global Object 'MainFormDoCommand' was already declared in File: 'WineCellarMain.c'. I am not able to figure out why this is happening, I must admit I am very new to the Palm development scene but basic event handling should not give any problem irrespective of the development enviornment. Any help with respect to the above will be of great help. TIA Cheers Amitnj ----- Original Message ----- From: "Hal Mueller" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Wednesday, July 24, 2002 3:41 PM Subject: Re: Linking Error Pls help!! > At 11:13 PM -0700 7/23/02, Amit Namjoshi wrote: > >the error I get is "Global object already declared in applications main file". > > Do you have a global variable declared in two files? A function > declared in two places? Might need to rename a function, or if it > really is two different functions, use "static". > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see >http://www.palmos.com/dev/support/forums/ > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
