Anybody can help me on this ...

I have installed gcc, prc-tools , sdk-4 and pilrc v2.8
I have set the path
PATH=   C:\Program Files\PRC-Tools\H-i586-cygwin32\bin;
        c:\pilrc-2.8;
        c:\cygnus\cygwin-b20\H-i586-cygwin32\bin;

Problem
=======
If I include <PalmOS.h> in my helloworld.c , it gives the error below

[//c/PalmDev/sdk-4/include]>make
m68k-palmos-gcc -O2 -g   -c helloworld.c -o helloworld.o
helloworld.c:8: PalmOS.h: No such file or directory
make: *** [helloworld.o] Error 1


If I include "PalmOS.h" in my helloworld.c , it gives the error below

[//c/PalmDev/sdk-4/include]>make
m68k-palmos-gcc -O2 -g   -c helloworld.c -o helloworld.o
In file included from helloworld.c:8:
PalmOS.h:26: PalmTypes.h: No such file or directory
PalmOS.h:27: SystemPublic.h: No such file or directory
PalmOS.h:28: UIPublic.h: No such file or directory
make: *** [helloworld.o] Error 1

why ????
I suspect this is due to library not included. I try to set it in Makefile
so that the library is included but still doesn't work. Anything else that I
miss ?


Makefile
=======
TARGET = helloworld
ICONTEXT = "Hello World"
APPID = PFDh
OBJS = $(TARGET).o

CC = m68k-palmos-gcc
PILRC = pilrc
TXT2BITM = txt2bitm
OBJRES = m68k-palmos-obj-res
BUILDPRC = build-prc
CSFLAGS = -O2 -S
CFLAGS = -O2 -g
INCLUDE = -IC:/PalmDev/sdk-4/include \
          -IC:/PalmDev/sdk-4/include/Core/ \
          -IC:/PalmDev/sdk-4/include/Core/System \
          -IC:/PalmDev/sdk-4/include/Core/System/Unix \
          -IC:/PalmDev/sdk-4/include/Core/UI \
          -IC:/PalmDev/sdk-4/include/Core/Hardware
LIBDIR  = c:/PalmDev/sdk-4/lib/m68k-palmos-coff
PALMLIB = $(LIBDIR)/libPalmOSGlue.a  $(LIBDIR)/libPalmOSGlue-debug.a
$(LIBDIR)/libNetSocket.a

all: $(TARGET).prc
.S.o:
        $(CC) $(INCLUDE)  $(TARGETFLAGS) -c $<
.c.s:
        $(CC) $(CSFLAGS) $<
$(TARGET).prc: pilbin/code0000.$(TARGET).bin pilbin/code0001.$(TARGET).bin
pilbin/data0000.        $(TARGET).bin bin.res
        cd pilbin;$(BUILDPRC) ../$(TARGET).prc $(ICONTEXT) $(APPID)
code0001.$(TARGET).grc \
        code0000.$(TARGET).grc data0000.$(TARGET).grc *.bin \
        pref0000.$(TARGET).grc
pilbin/code0000.$(TARGET).bin: $(TARGET)
        $(OBJRES) $(TARGET)
        mkdir -p pilbin
        mv *.grc pilbin
pilbin/code0001.$(TARGET).bin: pilbin/code0000.$(TARGET).bin
pilbin/data0000.$(TARGET).bin: pilbin/code0000.$(TARGET).bin
bin.res: $(TARGET).rcp
        mkdir -p pilbin
        $(PILRC) $(TARGET).rcp pilbin
        touch bin.res
$(TARGET): $(OBJS)
        $(CC)  $(INCLUDE) $(CFLAGS) $(OBJS) -o $(PALMLIB) $(TARGET)
clean:
        rm -rf *.[oa] $(TARGET) pilbin bin.res *.[pg]rc




TQ

regards,
K E



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

Reply via email to