At 10:01 PM 3/24/2004, you wrote:
I am getting the following link errors.

__RuntimeModule__ : Near data segment is greater than
64k
__RuntimeModule__ : Near data segment is greater than
64k
PalmOS_Startup: 'MTWK::__LoadAndRelocate__' 16-bit
data reference is out
of range.

1,2 should be the problem with Segment 6. The 3rd link
error should go
off if I rearrange the code snippet.

Segment 6 : Code 40 DATA 48k <----- (Problem)

As you can see, the code part is almost zero. It has a
constant
definition of a structure with MANY values assigned.

Segments only deal with code. There's a global data limitation of 64K that can't be exceeded in 68K applications.


If you've got a large constant data table, you should look at moving it to a resource that gets locked at runtime with a pointer pointing to it. There's no other good solution. Sorry.


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

Reply via email to