"Eugene Mayevski" <[EMAIL PROTECTED]> wrote in message
news:45010@palm-dev-forum...
>
> Hello!
>
> We are trying to create the shared library that includes string and
array
> constants. The library links fine. however it doesn't work as
expected.
> Constants seem to be not read from memory. Unfortunately, the common
> solution for global variables doesn't work since we have the problem
not
> with globals but with constants (preinitialized variables).
>
> We are using CW 6, PalmOS 3.5 SDK.

First, make sure you have the "PC-Relative Strings" option turned on in
the 68K Processor pref panel.

For other constants, there might not be anything you can do.  One
solution would be to move the values into resources and then load values
out of those.  You want to be able to compile your C code in CW and get
"0" for the data column, as anything that is considered "data" isn't
accessable in a library.

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