It seems that you need to divide your app into a couple of segments. Use
project menu and select add segment. Then move some of your files to
this new segment. You should also read best practices on segmenting
apps.
http://kb.palmsource.com/cgi-bin/palmsource.cfg/php/enduser/std_adp.php?
p_sid=8vn6r7Ug&p_lva=&p_faqid=260&p_created=1032307560&p_sp=cF9zcmNoPTEm
cF9ncmlkc29ydD0mcF9yb3dfY250PTEzJnBfc2VhcmNoX3RleHQ9c2VnbWVudGluZyZwX3Nl
YXJjaF90eXBlPTMmcF9wcm9kX2x2bDE9fmFueX4mcF9jYXRfbHZsMT1_YW55fiZwX3NvcnRf
Ynk9ZGZsdCZwX3BhZ2U9MQ**&p_li=


Bests
d.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ray
Lee
Sent: 23 września 2003 18:49
To: Palm Developer Forum
Subject: Compiling Error: Help Please


Hello!

I am writing a Palm App using CW8 and although the active code is
correct, it is not compiling.  I am getting some strange linking error
when I'm compiling. The two error messages are:

StartupCode.c: "__Startup__' 16-bit code reference to 'PilotMain' is out
of range.
Main.c: 'AppStart' 16-bit code reference to 'initDataTable' is out of
range.

In the code, I call 3 unrelated procedures, A, B, and C.  If I call any
two of the three, the code compiles and links successfully.  If I call
all 3, it won't compile/link.  If I call A three times, it won't
compile/link.  If I call A four times, I get even more error messages
along the vein of the Main.c error above, claiming more data structures
are out of range.  Does anyone have any idea what is going on?

I don't know if I am running into a memory problem or a resource problem
or what.  I have tried setting the optimization bar in CW8 to max and
although that helps in some instances, it still won't let me call all
three procedures. I have all the source code in one big .c file with
about 6 .h files and 1 .rcp. The code is currently 3000 active lines
with another 1500 commented out and I do have some big data structures.

Any help would be greatly appreciated!  THANK YOU!
Ray


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