----- Original Message ----- 
From: "Ben Combee" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Sunday, April 11, 2004 11:45 AM
Subject: Re: char dummy[0]


> At 08:25 AM 4/11/2004, you wrote:
> >I can declare char dummy[0] in a struct, but if I declare it as a global
> >var, I get the error  "Illegal constant expression". Is there any #pragma
to
> >do that ?
>
> Nope.  Variables are not necessarily laid out in the order declared, since
> the linker will remove any variables that aren't used, and the allocation
> order in the data segment will depend on the link order.  There's no way
to
> just "label" a location in memory; what meaning would it have?
>

Thanks for the explanation, Ben. I will use struct instead.

Vu



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to