Ok all the functions that don't seemed to be defined in the
BitmapRsrc.c that are causing the problems are defined as inline
functions in BitmapRsrc.h. I don't know too much about inline
functions and how they work. Should they be implemented in the
BitmapRsrc.c?

How should I be linking these files?

I should have BitmapRsrc.h included in my main program... which leads
to how do I connect BitmapRsrc.c in with everything so I don't get
undefined references to the functions?

Landon

On 7/28/05, Landon Cunningham <[EMAIL PROTECTED]> wrote:
> Hey again all,
> 
> I'm back at trying to get the bitmapRsrc files working and I have run
> into another problem.
> 
> rm -rf *.o BitmapRsrc NeoSlate *.bin *.grc *.stamp *~
> m68k-palmos-gcc -g -c NeoSlate.c -o NeoSlate.o
> m68k-palmos-gcc -g BitmapRsrc.c -o BitmapRsrc.o
> BitmapRsrc.c: In function `BmpRsrcV3Create':
> BitmapRsrc.c:398: warning: comparison is always false due to limited
> range of data type
> /usr/m68k-palmos/lib/crt0.o(.text+0x64): In function `start':
> crt0.c:69: undefined reference to `PilotMain'
> /usr/m68k-palmos/lib/gdbstub.o(.text+0x7a): In function `StartDebug':
> gdbstub.c:46: undefined reference to `PilotMain'
> collect2: ld returned 1 exit status
> make: *** [BitmapRsrc.o] Error 1
> 
> I am thinking that I am not compiling right and that could be due to
> my make file. I don't know too much about make files and I wondering
> is this the problem why I can't get everything to compile?
> 
> Here is my make file:
> 
> APP      = NeoSlate
> APPID    = NSla
> RCP      = NeoSlateRsc.rcp
> PRC      = NeoSlate.prc
> SRC      = NeoSlate.c
> BITMAP   = BitmapRsrc
> 
> 
> CC       = m68k-palmos-gcc
> PILRC    = pilrc
> OBJRES   = m68k-palmos-obj-res
> BUILDPRC = build-prc
> 
> CFLAGS   = -g
> 
> all: $(PRC) clean
> 
> $(PRC): grc.stamp bin.stamp;
>         $(BUILDPRC) $(PRC) $(APP) $(APPID) *.grc *.bin
>         ls -l *.prc
> 
> grc.stamp: $(APP)
>         $(OBJRES) $(APP)
>         touch $@
> 
> $(APP): $(SRC:.c=.o) BitmapRsrc.o
>         $(CC) $(CFLAGS) $^ -o $@
> 
> BitmapRsrc.o: BitmapRsrc.c
>         $(CC) $(CFLAGS) $^ -o $@
> 
> BitmapRsrc.c: BitmapRsrc.h
> 
> bin.stamp: $(RCP)
>         $(PILRC) $^ $(BINDIR)
>         touch $@
> 
> %.o: %.c
>         $(CC) $(CFLAGS) -c $< -o $@
> 
> depend dep:
>         $(CC) -M $(SRC) > .dependencies
> 
> clean:
>         rm -rf *.o $(BITMAP) $(APP) *.bin *.grc *.stamp *~
> 
> veryclean: clean
>         rm -rf *.prc *.bak
> 
> Thanks Landon
> 
> --
> For information on using the PalmSource Developer Forums, or to unsubscribe, 
> please see http://www.palmos.com/dev/support/forums/
>

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

Reply via email to