Hi Sriram,

This is usually the result of the compiler attempting to reference a
pre-initialized global variable. To determine the "real" line that is
causing the problem, pass the -save-temps option to the compiler and
look at the output .s file that is generated. This problem is due to the
compiler using intermediate 16-bit numbers to represent pre-initialized
global variable references in the code. These 16-bit offsets start at
higher numbers based on the amount of code you have. Unfortunately,
there doesn't seem to be any workaround for this except for not using
pre-initialized globals in the first place. You can either declare them
uninitialized and then initialize them manually in at the start of
PilotMain(), or if they are never changed, put the const keyword in
front of them so that they end up in the code segment.

Hope that helps,

Aaron


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of V. Sriram
Sent: Wednesday, March 21, 2007 7:55 AM
To: Palm Developer Forum
Subject: Error: Signed .word overflow;

hi all,
i've asked this query once before. but i'm still not able to figure out
the exact reason for this error. when i compile my code, i get the
following error:
"Error: Signed .word overflow; switch may be too large; 38224 at
0x2670."
i understand it has something to do with segmentation. for this reason,
i have divided the code in two segments. i have also split the source
file into two. but still i'm getting the same error. 

someone please tell me how can i get rid of this error. i'm using PODS.
please let me know if some more information is required.

thanks and regards,
sriram
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe,
please see http://www.access-company.com/developers/forums/


-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to