Hi there,
I bought a TungstenT3. Now I want to include the Dynamic Input Area (DIA) in my
existing application. In preparation for this, I wanted to do a small hello_dia
application to get familiar with the new feature.
For this test, I am using GCC/PRC-tools on Windows under CygWin.
I read through the recipe 507 of the PalmSource KnowledgeBase (Using PalmOS PinMgr and
cross platform Dynamic Input Area support).
I want to use CollapseUtilSony.c as recommended in the recipe.
Here is an excerpt of the warnings and errors I get from make:
<--- START OF make OUTPUT --->
<--- Here are some warnings from the Sony includes --->
m68k-palmos-gcc -O1 -Wall -c hello_dia.c -o hello_dia.o
m68k-palmos-gcc -O1 -Wall -c CollapseUtilsSony.c -o CollapseUtilsSony.o
In file included from /PalmDev/sdk-5/Incs/libraries/SonyLibPublic.h:28,
from /PalmDev/sdk-5/Incs/SonyClie.h:29,
from CollapseUtilsSony.c:2:
/PalmDev/sdk-5/Incs/libraries/SonyHRLib.h:203: warning: possibly bad __callseq__ `trap
#15; dc.w HRTrapGetAPIVersion'
<... lots of similar errors ...>
In file included from /PalmDev/sdk-5/Incs/libraries/SonyLibPublic.h:29,
from /PalmDev/sdk-5/Incs/SonyClie.h:29,
from CollapseUtilsSony.c:2:
/PalmDev/sdk-5/Incs/libraries/SonyRmcLib.h:130: warning: possibly bad __callseq__
`trap #15; dc.w RmcLibTrapRegister'
<... lots of similar errors ...>
In file included from /PalmDev/sdk-5/Incs/libraries/SonyLibPublic.h:30,
from /PalmDev/sdk-5/Incs/SonyClie.h:29,
from CollapseUtilsSony.c:2:
/PalmDev/sdk-5/Incs/libraries/SonyJpegUtilLib.h:250: warning: possibly bad __callseq__
`trap #15; dc.w jpegUtilLibTrapGetLibAPIVersion'
<... lots of similar errors ...>
In file included from /PalmDev/sdk-5/Incs/libraries/SonyLibPublic.h:31,
from /PalmDev/sdk-5/Incs/SonyClie.h:29,
from CollapseUtilsSony.c:2:
/PalmDev/sdk-5/Incs/libraries/SonySilkLib.h:164: warning: possibly bad __callseq__
`trap #15; dc.w silkLibTrapResizeDispWin'
<... lots of similar errors ...>
CollapseUtilsSony.c: In function `CollapseSetTriggerStates':
CollapseUtilsSony.c:616: warning: `oldPinTriggerState' might be used uninitialized in
this function
<--- Here are the errors --->
m68k-palmos-gcc -O1 hello_dia.o CollapseUtilsSony.o -o hello_dia
CollapseUtilsSony.o(.text+0x116):CollapseUtilsSony.c: undefined reference to
`silkLibTrapEnableResize'
CollapseUtilsSony.o(.text+0x138):CollapseUtilsSony.c: undefined reference to
`VskTrapGetAPIVersion'
CollapseUtilsSony.o(.text+0x15e):CollapseUtilsSony.c: undefined reference to
`VskTrapSetState'
CollapseUtilsSony.o(.text+0x204):CollapseUtilsSony.c: undefined reference to
`silkLibTrapResizeDispWin'
CollapseUtilsSony.o(.text+0x210):CollapseUtilsSony.c: undefined reference to
`silkLibTrapDisableResize'
<... similar errors ...>
CollapseUtilsSony.o(.text+0x688):CollapseUtilsSony.c: undefined reference to
`VskTrapGetAPIVersion'
CollapseUtilsSony.o(.text+0x6be):CollapseUtilsSony.c: undefined reference to
`VskTrapSetState'
CollapseUtilsSony.o(.text+0x6d4):CollapseUtilsSony.c: undefined reference to
`VskTrapSetState'
collect2: ld returned 1 exit status
make: *** [code0001.hello_dia.grc] Error 1
<--- END OF make OUTPUT --->
Does anyone know, why I get all those nasty warnings (warning: possibly bad
__callseq__ `trap #15; dc.w HRTrapGetAPIVersion') ?
The files in \sdk-5\lib\ are dated 30-Sep-2002, which seems a little old to me. I got
those files from an archive called palmos-sdk-5.0-1.zip which I downloaded today from
palmsource.com.
Could this be the problem for the errors (undefined reference to ...) ? Is there a
later version of the SDK which includes new libraries?
The file PalmOS_5_SDK_68K_R3_no-install.zip seems to include all the needed header
files, but not any libraries.
I also downloaded the SDK from Sony (cliesdk50e.zip).
What am I doing wrong?
Thanks in advance,
Ralf Zimmermann
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/