You have to put in only the header of functions which are used across segments. If a function is used only in it's own segment, it can be accessed directly, and does not need an External Function Pointer. The easiest way to figure this out I believe, is to use preprocessor defines, so add to each header file a
#ifdef SEGMENTNUMBER???? ******** #endif and in each code file add a #define SEGMENTNUMBER???? #include <header_files> // change the ???? to whichever segment the file belongs to Now when you will compile each segment, you will know which external functions it is calling, for it will fail with an error (since it is not declared, due to the defines). So then change every error call to ExternalFunction(FunctionName), add that function to the function table in common.h, and add initialization to that segments InitFunctionTable function, to init the function pointer you just added. Do this for all the segments, and you will eventually have it. Good Luck, LionScribe -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
