PCH error when including .c files (sqlite3)

I’m trying to include sqlite3 by copying the [amalgamation files][1] into the project, however am getting these errors when building:

C:\MyProject\Plugins\SQLite\Source\SQLite\ThirdParty\sqlite3.c : fatal error C1853: 'C:\MyProject\Intermediate\Build\Win64\MyProjectEditor\DebugGame\Plugins\Dynamic\SQLite\SQLite.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)

1>C:\MyProject\Plugins\SQLite\Source\SQLite\ThirdParty\shell.c : fatal error C1853: 'C:\MyProject\Intermediate\Build\Win64\MyProjectEditor\DebugGame\Plugins\Dynamic\SQLite\SQLite.h.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)

[This thread][2] recommends to disable pre compiled headers for those files, however I don’t get the option in Visual Studio.

How can I include sqlite in my project?

I have the same issue after updating unreal engine to 4.5. In the previous versions it was working fine.

Halp please, I need this option as well to include MikkTSpace.h and MikkTSpace.c to fix the static mesh tangent basis.

I’ve submitted a pull request to add a SQLite module to the engine that you’ll be able to use in your projects.
Its intended to expose a similar interface to the existing database classes rather than give direct access to the API, but you may find it useful for creating a custom module that you can then reference in your own projects. You can find the pull request (which is still pending) here.

Hey guys-

As mentioned a pull request for this support has been submitted and should be accepted. This will be included in a future update to the engine as an optional module.

Cheers

Please help me…I have stuck in my project.

I had downloaded SQLiteUE4 from : GitHub - KhArtNJava/SQLite3UE4: SQLite3 Database Plugin for Unreal Engine 4

I am able to build the project successfully. I am able to see the database content in editor play. But whenever i try to launch/package the project it fails.

Here is the log file.

Hey pranav2w-

You may need to create a new post for your issue. The original issue here was problems setting up / using SQLite which it sounds like you’re able to do successfully. Be sure to include information in your post about what exactly is failing when you package the project.

We hope this plugin can help you.

HiSQLite3 (SQLite3 For UE4)