Logged In: NO

It sounds like you are using prc-tools to compile.

The Sony SDK has a known problem, and the header files
need to be patched, converting the enums to defines.

If you look on the Palm developer's forum, you will probably
be able to fine someone who has the script.