lyssa
09-20-2005, 02:50 PM
I'm using:
linux 2.4.29 (i686) (slackware 10.1)
prc-tools-2.3-i486-2ajl
palmos SDK 4 (first tried 5.3r but same problems then too)
POSE 3.5
and trying to get chapter 3's "Hello World" example working from <u>Palm OS GAME Programming</u>, by Nicholas Pleis ISBN: 1-931841-19-5
to compile I do this:
m68k-palmos-gcc -palmos4 -c main.cpp
m68k-palmos-gcc *.o -o main
m68k-palmos-obj-res main
build-prc hello_world.prc "Hello" GPP0 *.grc
(no errors are given during compiles, btw)
I then get a *.prc to compile and install in the emulator but then when I open it in POSE it gives three errors and needs a reset :(
errors:
###########################
Hello (unknown version) called SysFatalAlert with the
message: "UIResource.c, Line:88, Resource for app form
1004 not found".
------------------
Hello (unknown version) called SysFatalAlert with the
message: "MemoryMgr.c, Line:4365, NULL handle".
------------------
Hello (unknown version) called SysFatalAlert with the
message: "MemoryMgr.c, Line:4450, Nil Ptr".Hello (unknown version) just
read from memory location
0xFFFFFFF8, causing a bus error.
A "bus error" means that the application accessed a
memory location that is not in RAM or ROM, nor
corresponds to a memory-mapped hardware register.
###########
I looked at the *.h and they are what the book gave me on the CD-ROM except I fixed a punctuation with the include header from a 'c' to a 'C' and it seems fine but why all the errors?
What am I doing wrong? Why can't I even make 'Hello World'?! I checked and the publisher of the book has no errata...actually they don't even have a working web site :( http://www.premierpressbooks.com/
Also, I've ran palmdev-prep as root and it gives no errors.
Please help. ^_^'
p.s. the example from the book's CD-ROM itself even gives some memory leak errors after it displays Hello World. :{
linux 2.4.29 (i686) (slackware 10.1)
prc-tools-2.3-i486-2ajl
palmos SDK 4 (first tried 5.3r but same problems then too)
POSE 3.5
and trying to get chapter 3's "Hello World" example working from <u>Palm OS GAME Programming</u>, by Nicholas Pleis ISBN: 1-931841-19-5
to compile I do this:
m68k-palmos-gcc -palmos4 -c main.cpp
m68k-palmos-gcc *.o -o main
m68k-palmos-obj-res main
build-prc hello_world.prc "Hello" GPP0 *.grc
(no errors are given during compiles, btw)
I then get a *.prc to compile and install in the emulator but then when I open it in POSE it gives three errors and needs a reset :(
errors:
###########################
Hello (unknown version) called SysFatalAlert with the
message: "UIResource.c, Line:88, Resource for app form
1004 not found".
------------------
Hello (unknown version) called SysFatalAlert with the
message: "MemoryMgr.c, Line:4365, NULL handle".
------------------
Hello (unknown version) called SysFatalAlert with the
message: "MemoryMgr.c, Line:4450, Nil Ptr".Hello (unknown version) just
read from memory location
0xFFFFFFF8, causing a bus error.
A "bus error" means that the application accessed a
memory location that is not in RAM or ROM, nor
corresponds to a memory-mapped hardware register.
###########
I looked at the *.h and they are what the book gave me on the CD-ROM except I fixed a punctuation with the include header from a 'c' to a 'C' and it seems fine but why all the errors?
What am I doing wrong? Why can't I even make 'Hello World'?! I checked and the publisher of the book has no errata...actually they don't even have a working web site :( http://www.premierpressbooks.com/
Also, I've ran palmdev-prep as root and it gives no errors.
Please help. ^_^'
p.s. the example from the book's CD-ROM itself even gives some memory leak errors after it displays Hello World. :{