Thanks Michal :) I have change library header to #define and it work ok :)
Bye Michal Seliga <[EMAIL PROTECTED]> escribió: if you are using prc tools (gcc compiler) then you must change library headers that tras won't be defined by enum but by #define Javi Martinez wrote: > Hello > > I am using a library called "DESLib" (poner web), but i have problem > using it.The problem is when I import the file DESLib.h I have 4 errors > with the next text (one function of library = one error): > > "warning: possibly bad __callseq__ `trap #15; dc.w DESTrapDESInitialize'" > > and the error is in the line: > > "extern DESErr DESInitialize(UInt16 refNum, unsigned char * > keystring, unsigned char * iv, int desmode, int destype, int encrypt, > DES_CTX * key) > SYS_TRAP(DESTrapDESInitialize);" > > > And after, when I invoke the function in AppMain.c I have the next > error: "undefined reference to `DESTrapDESInitialize'" > > > I am using to the development Palm OS Developer Suite Version: > 1.2.0.23. and the application is 68k. > > Why have I got this errors? How can I solved it? > > Thanks > > ---------------------------------------------------------------- > > In Spanish (en español) > > Hola > > Estoy tratando de realizar una pequeña aplicación que utilice la > librería "DESLib" (poner web). Esta librería consta de un .h y un .prc. > Para utilizarla incluyo el .h en la aplicación, pero este me da 4 > warnings (uno por cada función de la librería) con el siguiente texto: > > "warning: possibly bad __callseq__ `trap #15; dc.w DESTrapDESInitialize'" > > estos warning dan en lineas de este tipo: > > "extern DESErr DESInitialize(UInt16 refNum, unsigned char * > keystring, unsigned char * iv, int desmode, int destype, int encrypt, > DES_CTX * key) > SYS_TRAP(DESTrapDESInitialize);" > > Más concretamente, en la parte del SYS_TRAP. Aunque estos errores son > warnings, el problema viene posteriormente al utilizar la función, en > este caso DESInitialize, ya que obtengo un error diciendo: > > "undefined reference to `DESTrapDESInitialize'" > > es decir, que no encuentra la función que generó el warning. Para el > desarrollo estoy utilizando el Palm OS Developer Suite y es una > aplicación 68k. > > ¿Por qué se producen esos warnings? ¿Cómo puedo solucionarlos? > > Gracias y un saludo > > > > ******************************************************************** > > Javi Martínez > web: http://usuarios.lycos.es/acertijolandia > > ********************************************************************* > > ------------------------------------------------------------------------ > > LLama Gratis a cualquier PC del Mundo. > Llamadas a fijos y móviles desde 1 céntimo por minuto. > http://es.voice.yahoo.com > > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ --------------------------------- LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
