I’m trying to add fileio.c to my core_init function so I can investigate if the 
readfile and writefile functions would help here. I’ve added

#include “fileio.c”

Inside the core_init function what do I add ?

        nErr += sqlite3_auto_extension((void(*)())sqlite3_fileio_init);     // 
??????????
or
        nErr += sqlite3_auto_extension((void(*)())sqlite3_readfile_init); // 
??????????
        nErr += sqlite3_auto_extension((void(*)())sqlite3_writefile_init); // 
?????????

When the compiler reaches the ‘#include “fileio.c” I get several error messages

[bcc64 Error] fileio.c(507): unknown type name 'DIR'
[bcc64 Error] fileio.c(661): incomplete definition of type 'struct DIRENT'
  fileio.c(659): forward declaration of 'struct DIRENT'
[bcc64 Error] fileio.c(662): incomplete definition of type 'struct DIRENT'
  fileio.c(659): forward declaration of 'struct DIRENT'
[bcc64 Error] fileio.c(662): incomplete definition of type 'struct DIRENT'
  fileio.c(659): forward declaration of 'struct DIRENT'
[bcc64 Error] fileio.c(663): incomplete definition of type 'struct DIRENT'
  fileio.c(659): forward declaration of 'struct DIRENT'
[bcc64 Error] fileio.c(666): incomplete definition of type 'struct DIRENT'
  fileio.c(659): forward declaration of 'struct DIRENT'
Failed
Elapsed time: 00:00:01.3

I can see these are defined in test_windirent.h and fileio.c has the line 
“include “test_windirent.h” so I don’t know why I’m getting these.
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to