Thanks for responding Deon,
Ok, I took the two sqlite3.c and sqlite3.h files, fresh from an amalgamation
extract, put them in the project, and set .c to "Not using precompiled header",
All platforms, all configurations.
I compile and get one error:
Severity Code Description Project File Line Suppression State
Error LNK2001 unresolved external symbol _sqlite3_version sqlite_try_3
C:\Users\DSNoS\source\repos\sqlite_try_3\sqlite_try_3\sqlite3.obj 1
From: Deon Brewis <[email protected]>
To: SQLite mailing list <[email protected]>
Sent: Friday, December 21, 2018 8:03 AM
Subject: Re: [sqlite] Need setup code for VC++ 2017 that will ACTUALLY COMPILE
Right-click on the sqlite3.c file in your Visual Studio project, click on
properties, then under C/C++ go to Precompiled Headers, and change the setting
for "Precompiled Header" to "Not using precompiled header".
Make sure to do this for "All Configurations" and "All Platforms" (at the top
of that dialog).
- Deon
-----Original Message-----
From: sqlite-users <[email protected]> On Behalf Of
Jens Alfke
Sent: Thursday, December 20, 2018 5:59 PM
To: SQLite mailing list <[email protected]>
Subject: Re: [sqlite] Need setup code for VC++ 2017 that will ACTUALLY COMPILE
> On Dec 20, 2018, at 5:34 PM, zydeholic <[email protected]> wrote:
>
> I pulled the two files into a C++ project, deleted the .cpp file, and
> compiled.
> It came back and said my PCH compiled header was from a previous project, or
> something like that. I tried to save the message, but it got lost in the
> hubbub.
> So, I deleted the PCH.CPP file that was in the project. I just rebuilt it,
> and got this message:
>
> Error C1010 unexpected end of file while looking for precompiled
> header. Did you forget to add '#include "pch.h"' to your source? sqlite_c
> c:\sqlite\source code\sqlite-amalgamation-3260000\sqlite3.c 220536
You’re having trouble with Visual Studio, not with SQLite. A forum for VS users
would be an appropriate place to ask for help.
—Jens
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users