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?
-- Ben Combee, senior DTS engineer, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
