Updating to 4.5 broke precompiled headers?

I updated my project to 4.5 and now I get an error with precompiled headers. I’m using the SQLite library which is C and when compiling these i am now getting a precompiled header warning. I have cleaned my project and nothing. I also tried to change the precompiled headers option in the project properties and this does not work.

1>  shell.c
1>C:\Users\kevin\Documents\Unreal Projects\RPGSystemDemo451\Source\RPGSystem_Demo\Classes\RPGEngine\SQLite3\shell.c : fatal error C1853: 'C:\Users\kevin\Documents\Unreal Projects\RPGSystemDemo451\Intermediate\Build\Win64\RPGSystem_DemoEditor\Development\RPGSystem_Demo\RPGSystem_Demo.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>  sqlite3.c
1>C:\Users\kevin\Documents\Unreal Projects\RPGSystemDemo451\Source\RPGSystem_Demo\Classes\RPGEngine\SQLite3\sqlite3.c : fatal error C1853: 'C:\Users\kevin\Documents\Unreal Projects\RPGSystemDemo451\Intermediate\Build\Win64\RPGSystem_DemoEditor\Development\RPGSystem_Demo\RPGSystem_Demo.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)

I tried all the precompile header options in property manager → Development_Editor-> Properties and no go. I cant change the single files compile settings to /Tc since right clicking the file does not give you the C++ options drop down… I don’t get what changed from 4.4.3 to 4.5.1…

Are plugins the only way to include C files now? What changed?

Just confirmed with others that they get recompile headers after updating to 4.5.1 not just SQLite3 users. Did something change that I missed?

Hey Shoiko-

Does this error only occur when working in your project? Are you able to create a new 4.4.3 project with SQLite and upgrade to 4.5.1? Let us know any steps taken that produce this error to help track where and what is causing the problem.

Cheers

I’ve tried a fresh 4.5.1 project and got the issue. I have also tried a 4.4.3 project and have it work. I have only updated my project from 4.4.3 to the latest. I thought that it could just be the fact that my main project was created orginally in 4.0 and updated through the iterations.

These are the files I extracted for the unreal community members that asked for my SQLite integration source. It was from them that I originally found out about the issue. When trying it my self in 4.5.1 I had all files included and updated for the correct game mode links and then I get the precompiled header errors for both shell.c and sqlite.c.

SourceFiles

Hey guys-

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

Native SQLite support? Oh my! Should I wait for this to be added or continue to seek a solution for this compiler issue? Currently I’m stuck on version 4.4.3

It would probably be best to wait for the time being. If you are able to continue your project in 4.4.3 it may be easier to wait to upgrade until this issue is no longer blocking your progress.

Ohh Native SQLite support!!! O.O great… I hope new version comes really soon… If not I’ll need to make my thesis project in 4.4.3

Was this ever added?

Hey Shoiko-

The pull request mentioned previously was implemented into the engine. If you are using source code from Github you can merge the commit at the following link to your code. If you are not using the source code then I would suggest trying out either 4.6.1 or the 4.7 preview 5 via the launcher.

https://github.com/EpicGames/UnrealEngine/commit/9ca96368c281b8a40c3eebfae2555ea3bc015c44