Hi all,
This error has been bugging for the last week. But i
cant
get rid of it.This is when i have segmented my
application .. Is it 
because of my prctools ??

m68k-palmos-gcc  -c Care.c -o Care.o
m68k-palmos-gcc  -c CareSec2.c -o CareSec2.o
m68k-palmos-multigen    Care.def
m68k-palmos-gcc  -o Care Care.o CareSec2.o
Care-sections.ld
Care.o(.text+0x7462):Care.c: undefined reference to
`__text__sec2form'
collect2: ld returned 1 exit status
make: *** [Care] Error 1

Some Explaination
////////////my Make file
VERSION   = 1.0
APP    = Care
ICONTEXT   = "Care"
APPID   = PApd
RCP   = $(APP).rcp
PRC   = $(APP).prc
DEF   = $(APP).def
SRC   = $(APP).c $(APP)Sec2.c
SECTIONS  = $(APP)-sections
CC   = m68k-palmos-gcc
PILRC   = pilrc
BUILDPRC  = build-prc
MULTIGEN  = m68k-palmos-multigen
# multigen

all: $(PRC)
$(PRC): $(APP) bin.stamp
 $(BUILDPRC) $(DEF) *.bin $(APP) 
 ls -l *.prc
$(APP): $(SRC:.c=.o) $(SECTIONS).ld
 $(CC) $(CFLAGS) -o $@ $^
bin.stamp: $(RCP)
 $(PILRC) $^ $(BINDIR)
 touch $@

%.o: %.c
 $(CC) $(CFLAGS) -c $< -o $@
$(SECTIONS).o: $(SECTIONS).s
 $(CC) $(CFLAGS) -c $< -o $@
$(SECTIONS).s $(SECTIONS).ld: $(DEF)
 $(MULTIGEN) $(DEF)
depend dep:
 $(CC) -M $(SRC) > .dependencies
///////////////////////////////
My .def file is

application {"Care" "PApd"}
multiple code{"sec2form"}
///////////////////
I have got just one huge method which i have put in
the other 
segment.
the other segment's header file looks like this
#define SEC2_SEC __attribute__ ((section
("sec2form")))
void PreFillEditStructure() SEC2_SEC;
///////////////////////
and the implementation of this method (in the
CareSec2.c file)
looks like this 
void PreFillEditStructure()
{
..........
}

//////////

i included the this header file in my main.c file..
and from main.c i call the method
PreFillEditStructure() (note that 
this method
is in the other segment)..
Doing this generates the above error. But if i remove
the call to 
this
method. it compiles fine.. But definatly it wont call
the
method.(PreFillEditStructure).

Plzzz help me out ... 

Husnain Malik

 


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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

Reply via email to