Hey,

i tried to change my project to multisegment ...
as in the examples i defined SECT1 and SECT 2 in a . def-file looking like
this (seems to be the same like the example in the compiler reference)

--
application { "FlashPro" Crd+ } //this is line 3
multiple code {SECT1 SECT2 }
--

i include a Sections.h looking like this:

--
#define SECT1  __attribute__ ((section ("SECT1")))
#define SECT2  __attribute__ ((section ("SECT2")))
--

and defined the following prototypes: (in a header file i include in all
.c-files

--
#include "Sections.h"
Boolean frm_statistic_make_stat() SECT1;
static Boolean frm_statistic_btn_stat_reset_OnSelect(EventPtr 
event) SECT1;
//static Boolean frm_statistic_btn_ok_stat_OnSelect(EventPtr 
event) SECT1;
static Boolean frm_statistic_btn_ok_statistic_OnSelect(EventPtr 
event) SECT1;

Boolean frm_sort_pb_ybox_OnSelect(UInt16 yyy) SECT2;
Boolean frm_sort_pb_xbox_OnSelect(UInt16 xxx) SECT2;
Boolean frm_sort_btn_reverse_order_OnSelect(EventPtr event) 
SECT2;
--

but when compiling the compiler gives back:

--
Compiling [..all my .c-files..]
Building Linker Script...
../FlashPro.def:3: parse error 
make: *** [Debug/FlashPro-sections.s] Error 1
-----------------------
Make returned an error.
--

What to do now?
I use falch.net-dev-studio and the segments are defined in the
projects-preferences

Greets
SL




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to