I may have found the fix to my first issue with compiling SQLite for Windows CE. The following items are what I changed:
In the SQLite3.c file Added near line 14092: #define HAVE_LOCALTIME_S 0 Just above: #if !defined(HAVE_LOCALTIME_R) && !defined(HAVE_LOCALTIME_S) && \ defined(_MSC_VER) && defined(_CRT_INSECURE_DEPRECATE) #define HAVE_LOCALTIME_S 1 #endif #ifndef SQLITE_OMIT_LOCALTIME /* ** The following routine implements the rough equivalent of localtime_r() ** using whatever operating-system specific localtime facility that ** is available. This routine returns 0 on success and ** non-zero on any kind of error. ** ** If the sqlite3GlobalConfig.bLocaltimeFault variable is true then this ** routine will always fail. */ Added near 14109: struct tm *__cdecl localtime(const time_t *t); just above: static int osLocaltime(time_t *t, struct tm *pTm){ The project now compiles... but I have not tested on a Window CE device yet. Caleb Austin -----Original Message----- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Simon Slavin Sent: Wednesday, October 10, 2012 8:52 AM To: General Discussion of SQLite Database Subject: Re: [sqlite] Building SQLite on Windows Embedded Compact 7(WEC7) On 10 Oct 2012, at 4:44pm, Caleb A. Austin <caus...@climet.com> wrote: > Then I add the SQLite3.c and SQLite3.h to the project and include > SQLite3.h into the Hello World project. This is where I get the > errors. Please make sure your compiler is set to compile '.c' files as C code, and not anything else like C++. This is a common source of compilation problems. Simon. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users ################################################################################## CONFIDENTIALITY NOTICE: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. It may contain confidential, privileged, and/or proprietary information. Any review, dissemination, distribution, copying, printing, or other use of this email by persons or entities other than the addressee and his/her authorized agent is prohibited. If you have received this email in error please notify the originator of the message and delete the material from your computer. ################################################################################## _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users