Thanks for the response. Yes I have the pcrelconstdata pragma on, and that helped somewhat, but the problem is that the array length is variable, so I didn't want to chew up a bunch of space by predefining the array length for the longest one, ... so I included a pointer to an array instead.
It seems to me that I can do this with just about every other compiler/architecture I have run across (I'm from the embedded world where const allows me to build structures in ROM). GB "Ben Combee" <[EMAIL PROTECTED]> wrote in message news:76094@palm-dev-forum... > > Are you using the "PC-relative const data" option in the compiler? The > problem is that when this is on, you can't have structure that > themselves contain pointers, since the data is read-only, and the > runtime library won't be able to adjust the read-only data to have the > right pointer at runtime. > > If you turn this off, you can do the constant tables, but they will be > in the data space, not the code space, and they won't be available. > > You could declare your pCharArray member as "const UInt8 > pCharArray[4]" -- then the data would be embedded into the table and the > whole thing could be put in constant storage. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
