> You could try allocating enough memory in the declaration of your 'global'
> structure, then use the library initialization to populate the array.

Populate it with what?  He doesn't have the constant data to populate it
with.

What you want to do, Phillip, is have the constant data compiled into the
code segment.  Use the following pragma if you're using CodeWarrior:

    #pragma pcrelconstdata on

And be sure to declare your array as const:

    const UInt32 var[4][256] = {...}.


Eric W. Sirko
Softworks Solutions, LLC


> ----- Original Message -----
> From: "Phillip Streck" <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Friday, June 08, 2001 11:16 AM
> Subject: globals and shared libs.
>
>
> > I'm working on a shared library where i have a few global that are
defined
> such as
> >
> > UInt32 var[4][256] = { ................ };
> >
> > so the data is always constant, after reading through the mastering
shared
> libraries doc it shows how you can define  a structure to use for
globals..
> yet i dont believe you can place constant data like this into strcture.
any
> suggestions on how to do this?
> >
> > thanks,
> >
> >
> > Philip Streck
> > Akron General Medical Center
> > Information Systems
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
> >
>
>
>
>



-- 
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