Search the forum for this error message. You'll learn that you should break your app
in a multisegment application. With PRC Tools, do some easy steps as:
1)add this line in every module source where you need to relocate a function:
#define Seg2 __attribute__ ((section("SEGMENT2")))
2) for each function in your code that you want to relocate in another segment, in the
declariation use:
#define Seg2 __attribute__ ((section("SEGMENT2")))
void func1(params) Seg2;
3) define in your app.def file the string:
multiple code {"SEGMENT2"}
to add a segment named SEGMENT2;
4)then use this command:
m68k-palmos-multigen.exe -b app_segments app.def
you now have two new files: app_segments.ld and app_segments.s, which are a linker
script and an assembly code that defines the code segments;
5)compile and link with these two files, for example:
compiling:
m68k-palmos-gcc.exe -c app.c app_segments.s
linking:
m68k-palmos-gcc.exe -o app app.obj app_segments.ld -lPalmOSGlue
Hope this will help.
BrownB
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/