I get a linker error when trying to build a multi-segmented 3.5 C++ app
using CodeWarrior R6 for Windows. (I have)
"Link Error Error while creating/copying resource fork"
"Link Error Error while saving resources"
I created this project using 3.5 stationery. I am aware that the first
segment must contain the MSLRuntime Palm OS (2i or 41).lib, PilotMain, and
any routines that PilotMain calls when it receives a
sysAppLaunchCmdNormalLaunch. I assume that first segment need not also
contain any routines called by any routines that PilotMain calls when it
receives a sysAppLaunchCmdNormalLaunch, because if that were the case the
whole app would/might need to be in the first segment.
BTW, I have 7 segments less than 32K in length (I can also reproduce the
error wth 3 segments between 32K and 64K in length). I am using the large
memory model and far "everything": far data, far method tables, far string
constants. At this point, I can sometimes get my project to build and link
but I can break it again by moving files between segments while not
violating the above restrictions I know of for the first segment (contains
pilotmain, etc.) without making any code changes.
Does anyone know what the problem might be or know of any other restrictions
on the contents of the segments? I need to resolve this problem ASAP, so
thanks for all replies!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/