I have recently downloaded SQLite4 sources and successfully produced both SQLite4 binary and SQLlite4.c/h sources for Ubuntu 15.04 using gcc 4.9.2.
I used the following sources http://www.sqlite.org/src4/vinfo?name=90c09b04513a4087 <http://www.sqlite.org/src4/vinfo?name=90c09b04513a4087> However when I try to compile the same sqlite4.c for windows, I get the following errors. >cl shell.c sqlite4.c -Fesqlite4.exe Microsoft (R) C/C++ Optimizing Compiler Version 18.00.30723 for x86 Copyright (C) Microsoft Corporation. All rights reserved. shell.c sqlite4.c sqlite4.c(15947) : error C2011: 'sqlite4_mutex' : 'struct' type redefinition sqlite4.c(1249) : see declaration of 'sqlite4_mutex' sqlite4.c(16025) : error C2078: too many initializers sqlite4.c(16039) : error C2039: 'mutex' : is not a member of 'sqlite4_mutex' sqlite4.c(1249) : see declaration of 'sqlite4_mutex' sqlite4.c(16039) : error C2198: 'InitializeCriticalSection' : too few arguments for call sqlite4.c(16058) : error C2039: 'mutex' : is not a member of 'sqlite4_mutex' sqlite4.c(1249) : see declaration of 'sqlite4_mutex' sqlite4.c(16058) : error C2198: 'DeleteCriticalSection' : too few arguments for call sqlite4.c(16119) : error C2039: 'mutex' : is not a member of 'sqlite4_mutex' sqlite4.c(1249) : see declaration of 'sqlite4_mutex' sqlite4.c(16119) : error C2198: 'InitializeCriticalSection' : too few arguments for call sqlite4.c(16147) : error C2039: 'mutex' : is not a member of 'sqlite4_mutex' sqlite4.c(1249) : see declaration of 'sqlite4_mutex' sqlite4.c(16147) : error C2198: 'DeleteCriticalSection' : too few arguments for call sqlite4.c(16167) : error C2039: 'mutex' : is not a member of 'sqlite4_mutex' sqlite4.c(1249) : see declaration of 'sqlite4_mutex' sqlite4.c(16167) : error C2198: 'EnterCriticalSection' : too few arguments for call sqlite4.c(16226) : error C2039: 'mutex' : is not a member of 'sqlite4_mutex' sqlite4.c(1249) : see declaration of 'sqlite4_mutex' sqlite4.c(16226) : error C2198: 'LeaveCriticalSection' : too few arguments for call sqlite4.c(16250) : warning C4028: formal parameter 1 different from declaration sqlite4.c(16250) : warning C4113: 'sqlite4_mutex *(_cdecl *)(int)' differs in parameter lists from 'sqlite4_mutex *(_cdecl *)(void *,int)' sqlite4.c(20767) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory Generating Code... Apparently sqlite4 sources at the moment, comply only with Linux headers and libraries and are not ported to use Windows. Is there any provision in the future to fix the source to compile for windows environment? I attach the sources I used. Thanks George Georgopoulos This e-mail, and any files and attachments transmitted with it, is confidential. It is intended for the sole use of the named recipients(s) only. If you have received this message in error, please immediately notify us by replying to this message and then permanently delete it. Any views and opinions expressed are those of the individual author/sender and are not necessarily shared or endorsed by INTRASOFT International SA or any associated or related company. This e-mail transmission is not binding for the purposes of forming a contract and does not form a contractual obligation of any type.