Hi Ben, Thanks for ur reply, I did as you told. And i include the header files like #include <FeatureMgr.h> #include <MemGlue.h> also. But i am getting linker error as MemGluePtrNew is undefined. I try to add palmosglue.lib library.But in my system i don't have this. I have only header files in C:\Program Files\Metrowerks\CodeWarrior\Palm OS Support\Incs\Libraries\PalmOSGlue I am using MW 9.1 . If u can help me in this regard kindly reply me. Thanks and Regards, Harsha Ben Combee <[EMAIL PROTECTED]> wrote: On 11/12/06, hvreddy wrote: > > Hi All, > Is it possible to create a global variable of size more than 64K in palm > os? I tryed to create more than 64K size of array but the linker is giving > error.Even i tryed using memptrNew also .Here also it gives the same error. > Is there a limitation for global variable size should not be more than 64K? > If so how can i solve this problem?
The space for all global variables is limited to 64K total, since the start of all of the variables has to be accessed via a 32K offset from the A5 register. You can declare a global pointer (4 bytes) and initialize it to point to a larger area allocated using MemGluePtrNew. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ --------------------------------- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
