> Compiling frmRCAS.c...
> frmRCAS.c:130: warning: type mismatch with previous implicit declaration
> frmRCAS.c:91: warning: previous implicit declaration of `loadRCAS'
> frmRCAS.c:130: warning: `loadRCAS' was previously implicitly declared to
> return `int'

The above errors occur because you're using loadRCAS before it is known. The
compiler then creates a default function prototype with return type int.
When the actual function is encountered, it doesn't match anymore.
Try putting
void loadRCAS(UInt16 Modo);

at the start of you're source file.

> frmRCAS.c: In function `loadRCAS':
> frmRCAS.c:142: parse error before `err'
> frmRCAS.c:143: `err' undeclared (first use in this function)
> frmRCAS.c:143: (Each undeclared identifier is reported only once
> frmRCAS.c:143: for each function it appears in.)

Check out Matt's reply for these errors. Interchanging the line with
lstP = (ListType *) ...
with
Err err = Open();

Ronnie

By the way: this is all pure C syntax and actually has nothing to do with
Palm
programming.

"R�gis Daniel de Oliveira" <[EMAIL PROTECTED]> wrote
>
> Hy all!
>
> I would like to make a function that will be called from the frmOpenEvent
> and will populate a list with some records.
>
> I have been made the function and the database access is working well but,
> when i implement the routines to clear the list and the points to the
list,
> the compiler generates a error. Does anybody knows what is going wrong???
>
> Thanks!
>
> Log generated by compiler:
>
> Starting to build D:\PROGRA~1\Falch.net\SIR_Palm\SIR_Palm.FNP
> Time: 14/01/2003 01:16:55
> -------------------------
> Compiling resource SIR_Palm.rcp...
> PilRC 68k v2.7b
>   Copyright 1997-1999 Wes Cherry   ([EMAIL PROTECTED])
>   Copyright 2000-2001 Aaron Ardiri ([EMAIL PROTECTED])
>
> Compiling frmRCAS.c...
> frmRCAS.c:130: warning: type mismatch with previous implicit declaration
> frmRCAS.c:91: warning: previous implicit declaration of `loadRCAS'
> frmRCAS.c:130: warning: `loadRCAS' was previously implicitly declared to
> return `int'
> frmRCAS.c: In function `loadRCAS':
> frmRCAS.c:142: parse error before `err'
> frmRCAS.c:143: `err' undeclared (first use in this function)
> frmRCAS.c:143: (Each undeclared identifier is reported only once
> frmRCAS.c:143: for each function it appears in.)
> make: *** [Debug/frmRCAS.o] Error 1
> -----------------------
> Make returned an error.
>
>
>
>
>
>
>



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

Reply via email to