On 6/21/06, Robin Cook <[EMAIL PROTECTED]> wrote:
Tried to compile 2.8.16 but got the below errors. Any suggestions?
Thanks.
C:\Windows CE Tools\wce211\PDT7200\Samples\sqlite\btree_rb.c(314) :
warning C4013: 'printf' undefined; assuming extern returning int
This is unused debug code. You can #ifdef the whole function.
C:\Windows CE Tools\wce211\PDT7200\Samples\sqlite\vdbe.c(389) : warning
C4013: 'getc' undefined; assuming extern returning int
C:\Windows CE Tools\wce211\PDT7200\Samples\sqlite\vdbe.c(395) : warning
C4013: 'ungetc' undefined; assuming extern returning int
It seems sqlite is using it's own fgets implementation for the vdbe
now, but using C functions not found in the (very poor) 2.11 C
runtime.
If I remember correctly, you can use fgetc instead of getc, but don't
think there is an ungetc replacement, so you'll need to reimplement
the function.
C:\Windows CE Tools\wce211\PDT7200\Samples\sqlite\vdbe.c(4140) : warning
C4013: 'fopen' undefined; assuming extern returning int
You'll have to replace this with wfopen (WinCE 2.11 only implements
the unicode variant of this functions). Look at wStrDup() in the os.c
file for how to transform the path to Unicode.
C:\Windows CE Tools\wce211\PDT7200\Samples\sqlite\vdbe.c(4140) : warning
C4047: '=' : 'void *' differs in levels of indirection from 'int '
This are the "normal" sqlite warnings ;-)
I don't have Windows to test this, but you should now know what to do.
Best regards,
~Nuno Lucas