Thanks Joe, Yes, I will look at keeping the source code clean of any edits. This was just a way to prove that it worked.
I have been able to run SQLite on the WEC7 board and create tables/ inserts/ etc. So it looks like things are working correctly. I do have a few questions though. In short: The database is created in the root directory, not in the local directory. And as such it does not find the database after being closed. I have the following setup: My working directory: /release/sql/ I run the following code in a program running from my working directory: Sqlite_test.exe .. sqlite3_open("main.db", &db); .. but the data base shows up in the root directory. Root: /main.db Any ideas on why the database is being placed in root and not in local? Caleb Austin -----Original Message----- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Joe Mistachkin Sent: Thursday, October 11, 2012 12:35 AM To: 'General Discussion of SQLite Database' Subject: Re: [sqlite] Building SQLite on Windows Embedded Compact 7(WEC7) Caleb A. Austin wrote: > > Added near line 14092: > #define HAVE_LOCALTIME_S 0 > Since the SDK you are using does not appear to provide the localtime_s function, even though it uses MSVC and its associated CRT, this makes sense. This could be defined in the Makefile and/or project properties to avoid having to modify the source code. > > Added near 14109: > struct tm *__cdecl localtime(const time_t *t); > Since <time.h> is included, this should not be required. I'm not sure exactly which SDK you are using; however, it appears that it may not be fully ANSI compliant? -- Joe Mistachkin _______________________________________________ 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