Hey Dave, I think you are making this too complicated. This is what I do and it works for me.
1. create your 2nd segment 2. take given source file (not the main) and move it the 2nd segment. 3. To reference your globals just make them "extern" in the 2nd segment. This step usually is not required since your source file already have extern references to the globals. hope this helps. regards, danny www.toysoft.ca > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Dave > Mottorn > Sent: Monday, January 20, 2003 4:24 PM > To: Palm Developer Forum > Subject: Multi-Segment Application > > > I went beyone the 64 K limit in my program and set up > another segment using > the instructons under Multi-Segment Applications in the > CodeWarrior Manual, > which was easy enough. I created another source code file and > moved one of > my application routines into it as well as all the defines and includes. > When I tried to do a make I got an error apparently in the compile pass on > every global variable and prototype that is defined in the original source > file. If I put global definitions in the new source file it seems to go > through the compile but I get multi-definition errors from the linker. > There must be something I'm missing that tells the compiler to look in the > original source file for globals and prototypes referenced in the > new source > code file. I'd appreciate any help anyone can give me. > > regards, > > Dave Mottorn > > > > -- > 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/
