This isn't working right... I think I'm missing something.
I went to that link you gave me, and it had two solutions... one without globals, and one with. I use the solution with globals, and it told me to include a .def file that had this line in it:
multiple code { "code1" "code2" }
but it didn't do anything! It still gave me 20 errors about some switch statement being too large.
The big programs out there, like Warfare, Stuntcar Extreme, breakout... How did they get around this problem?
Many were built using CodeWarrior for Palm OS, which supports larger code section sizes than PRC-Tools. Some are also ARM code reassembled into memory, which also uses different tools that don't have this kind of limitation.
The problem with your code is at assembly time -- this is when the compiler has emitted assembly code, and the assembler is turned it into object code and hitting a jump that goes too far. You could manually perform the compilation, outputing a .s file, and then manually assemble the .s file to figure out what jump is causing the problem.
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc. "Combee on Palm OS" weblog: http://palmos.combee.net/ Developer Fourm Archives: http://news.palmos.com/read/all_forums/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
