in the file Global.h write these diectives

#ifndef CLOBAL_H_ //AnyNameCAnBeUsed
#define CLOBAL_H_

.
.
.

your file code
.
.
.
.
#endif


it wud prevent this file from including more than once,.

Thanks




----- Original Message ----- 
From: "Asanka Hewage" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Monday, April 25, 2005 11:18 AM
Subject: Re: This is very urgent (Please help me to overcome this problem)


> Hi
>
> I have allready tried that several times.
> But the problem is codewarrior generate some error message.
> This is the error message
>
> Link Error : Retailer.c Global Object 'RetailerID' was allready defined in
file Invoice.c
>
> I create Global.h header file and included it within the Retailer.c
> (#include "Global.h")
> Then it's OK I can access the "RetailerID" which is declared in the
Global.h
>
> But.... If I try to include the same header file ("Global.h") to
Invoice.c, the above error message will popup.
>
> -- 
> 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/

Reply via email to