x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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)
 
Product Version: Not Selected
Tags:
more ▼

asked Oct 24 '14 at 09:33 AM in C++ Programming

avatar image

Shoiko
638 57 55 68

avatar image Shoiko Oct 24 '14 at 11:09 AM

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...

avatar image Shoiko Oct 25 '14 at 09:25 PM

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

avatar image Shoiko Oct 27 '14 at 04:16 AM

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?

avatar image Doug E ♦♦ STAFF Oct 28 '14 at 07:12 PM

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

Doug Wilson

avatar image Shoiko Oct 28 '14 at 07:21 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

Doug Wilson

more ▼

answered Oct 29 '14 at 03:46 PM

avatar image Shoiko Oct 29 '14 at 06:41 PM

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

avatar image Doug E ♦♦ STAFF Oct 29 '14 at 07:18 PM

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.

avatar image Taurustar Oct 30 '14 at 01:02 AM

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

avatar image Shoiko Feb 05 '15 at 02:15 PM

Was this ever added?

avatar image Doug E ♦♦ STAFF Feb 05 '15 at 02:47 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question