Hi Jon,
Thanks for ur reply. The things is I am quite new with CodeWarrior.
Can u please tell me whre can I create or change the segment table
settings?

It will be great if you can help me out!
thanks

Sounds like you have a segment bigger than 64k.  If you are using
CodeWarrior, you need to go into the segment tab and create a new
segment (or two).  Also, make sure that your runtime library and
PalmMain code are in the first segment, though or you will have issues
with non-normal launch codes.  Also, you might want to make sure that
your code model is set to Smart, instead of Small to minimize out of
range link reference errors.

-Jon

--------------------------------------------
Jonathan Hays
Palm OS Certified Developer
http://hazelware.luggle.com
--------------------------------------------


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Keyur
Patwa
Sent: Thursday, April 08, 2004 12:40 PM
To: Palm Developer Forum
Subject: Arrays/Pointer in Palm OS!


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.

I think I should use pointer but I don't know how to iniitlize a pointer
in Palm os!

Its very urgent, can someone please reply soon?

Thanks,

Keyur


-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/

-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to