I am trying to break an application into multiple segmens. Following some
posts here and the information on this link
(http://prc-tools.sourceforge.net/doc/prc-tools_3.html), I have added the
following to my Project:
Defined two sections in AppMain.c
#define POP1 __attribute__ ((section ("pop1")))
#define POP2 __attribute__ ((section ("pop2")))
Added the definition to the FuncPrototypes.h
static void populateTables(void) POP1;
static void populateTables2(void) POP2;
Added a file called Segments.def on the root of the project (it is on the
parent of the SRC directory:
application { "LRecords" DBA3 }
multiple code { pop1 pop2 }
When I compile the app... I get the following error:
In file included from ../src/AppMain.c:17:
../src/FuncPrototypes.h:20: parse error before `POP1'
../src/FuncPrototypes.h:20: warning: data definition has no type or storage
class
../src/FuncPrototypes.h:21: parse error before `POP2'
../src/FuncPrototypes.h:21: warning: data definition has no type or storage
class
Any help would be appreciated.
Carlos
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/