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"

C++ header files from a previous version of visual studio?

So, after updating my Visual Studio, my C++ code will no longer compile. Here's the error message:

 C:\Users\Armerala\Documents\Mistwrought\MistwroughtGame\Source\Mistwrought\HeroController.cpp : fatal error C1853: 'C:\Users\Armerala\Documents\Mistwrought\MistwroughtGame\Intermediate\Build\Win64\UE4Editor\Development\Mistwrought\Mistwrought.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:\Users\Armerala\Documents\Mistwrought\MistwroughtGame\Source\Mistwrought\SpawnManager.cpp : fatal error C1853: 'C:\Users\Armerala\Documents\Mistwrought\MistwroughtGame\Intermediate\Build\Win64\UE4Editor\Development\Mistwrought\Mistwrought.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:\Users\Armerala\Documents\Mistwrought\MistwroughtGame\Intermediate\Build\Win64\UE4Editor\Inc\Mistwrought\Mistwrought.generated.cpp : fatal error C1853: 'C:\Users\Armerala\Documents\Mistwrought\MistwroughtGame\Intermediate\Build\Win64\UE4Editor\Development\Mistwrought\Mistwrought.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>  -------- End Detailed Actions Stats -----------------------------------------------------------
 1>ERROR : UBT error : Failed to produce item: C:\Users\Armerala\Documents\Mistwrought\MistwroughtGame\Binaries\Win64\UE4Editor-Mistwrought.dll
 1>  Total build time: 9.86 seconds
 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command ""C:\Program Files (x86)\Epic Games\4.10\Engine\Build\BatchFiles\Build.bat" MistwroughtEditor Win64 Development "C:\Users\Armerala\Documents\Mistwrought\MistwroughtGame\Mistwrought.uproject" -rocket -waitmutex" exited with code -1.



I'm not using and C files as far as I know, so I don't think the issue lies there. Though, considering I did just update visual studio, I'll make the assumption that the error has to do with my headers being form a previous version of the compiler. I'm not really sure how to fix it though. I've tried rebuilding (won't rebuild), I've tried deleting the binaries folder and remaking those (another answer from somebody else's question suggested it might help, though it didn't for me). I'm sure there's some way to do this, but I just don't know what that way might be. Thanks in advance for any insight you guys can provide

Product Version: Not Selected
Tags:
more ▼

asked May 21 '16 at 07:14 PM in C++ Programming

avatar image

Scorch-D62
10 3 4 6

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

it is not the header it is a pre-compiled header what vs version you where using and what is the updated version

more ▼

answered May 21 '16 at 08:44 PM

avatar image

Mlody "Swidwin"
327 12 11 25

avatar image Scorch-D62 May 21 '16 at 08:50 PM

I'm using visual studio community 2015, and I've got it updated to Update 2 (which I believe is the most recent version)

avatar image Jamie Dale STAFF May 21 '16 at 09:33 PM

You'll need to clean before building after upgrading Visual Studio. Right click on your solution and choose "Clean" and then build as normal.

If that still doesn't work, delete your projects Intermediate/Build folder, re-generate project files for it, and try again.

avatar image Scorch-D62 May 22 '16 at 02:20 PM

Thanks, deleting the Build folder actually did the trick. That said, thanks Mlody for the help also

avatar image Mlody "Swidwin" May 21 '16 at 08:52 PM

error C1853:

Btw instead of output window read error window on the left side in error window you have code error for exaample error C1853: click on it and it will take you to the website with explanation you can also copy and paste to google

avatar image Mlody "Swidwin" May 21 '16 at 08:56 PM

BTW. have you tried to regenerate the visual studio files ??

https://wiki.unrealengine.com/Generate_Visual_Studio_Project

(comments are locked)
10|2000 characters needed characters left
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