"Srinivas Padmanabhuni" <[EMAIL PROTECTED]> wrote in message
news:48770@palm-dev-forum...
>
> I need to have 4K size of constant data in a shared
> library. Since i
> cannot have globals i used a static const array to
> keep my data. but
> somehow referring to this array is causing my program
> to crash in
> runtime.

You need to turn on the option to use PC-relative const data -- right
now, its treating the data as a global variable.

Add "#pragma pcrelconstdata on" to the top of your source file to enable
this.

--
Ben Combee, [EMAIL PROTECTED]
Techwood Broadcasting Foundation, Austin Bureau



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

Reply via email to