Hi guys,
Actually I am trying to declare an array like UInt8 grayedPixel[307200]; And I am getting the following linking errors,
Link Error : __RuntimeModule__: Near data segment is bigger than 64k. Link Error : __RuntimeModule__: Near data segment is bigger than 64k. Link Error : PalmOS_Startup.cpp: 'MTWK::__LoadAndRelocate__(unsigned char,_opaque*)' 16-bit data reference to '__segtable__' is out of range.
You have too much data in your program. There's a 64K limit to global data that's imposed by the way Palm OS sets up the global variable area and the way it's accessed from your code. You need to remove some of your global variables. If you've got large global arrays, try changing them into global pointers that space allocated at runtime. If you've got large amounts of constant data, consider putting it into a resource and using DmGetResource to access it.
-- 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/
