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++ File Compile Error

I just installed UE4 today and I am following the Twin Stick Shooter tutorial. I got to the part where I have to create my first C++ file, everything works until the part where the file compiles. It says something about auto compile failing and gives me the option to look at the log. I have been searching for a solution the whole day, but I have not found one. I downloaded windows SDK 8.1, I updated visual studio community with C++ common tools and I also installed visual studio express 2013, but still no fix.

This is the log:

 Running C:/Program Files (x86)/Epic Games/4.11/Engine/Binaries/DotNET/UnrealBuildTool.exe  -projectfiles -project="C:/Users/XXXX/Documents/Unreal Projects/TwinStickShooter/TwinStickShooter.uproject" -game -progress -2015
 Discovering modules, targets and source code for game...
 LogHotReload: Recompiling module TwinStickShooter...
 LogVSAccessor:Warning: Couldn't access Visual Studio
 Recompiling TwinStickShooter...
 Launching UnrealBuildTool... [C:/Program Files (x86)/Epic Games/4.11/Engine/Binaries/DotNET/UnrealBuildTool.exe TwinStickShooter -ModuleWithSuffix TwinStickShooter 1999 Win64 Development -editorrecompile -FailIfGeneratedCodeChanges -canskiplink "C:/Users/XXXX/Documents/Unreal Projects/TwinStickShooter/TwinStickShooter.uproject"  -2015]
 Creating makefile for hot reloading TwinStickShooter (no existing makefile)
 Compiling game modules for hot reload
 Performing full C++ include scan (no include cache file)
 Parsing headers for TwinStickShooterEditor
   Running UnrealHeaderTool "C:\Users\XXXX\Documents\Unreal Projects\TwinStickShooter\TwinStickShooter.uproject" "C:\Users\XXXX\Documents\Unreal Projects\TwinStickShooter\Intermediate\Build\Win64\TwinStickShooterEditor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -insta
 lled -FailIfGeneratedCodeChanges
 ERROR: 'C:/Users/XXXX/Documents/Unreal Projects/TwinStickShooter/Intermediate/Build/Win64/UE4Editor/Inc/TwinStickShooter/BaseCharacter.generated.h': Changes to generated code are not allowed - conflicts written to 'C:/Users/XXXX/Documents/Unreal Projects/TwinStickShooter/Intermediate/Build/Win64/UE4Editor/Inc/TwinStickShooter/BaseCharacter.generated.h.co
 nflict'
 Error: Failed to generate code for TwinStickShooterEditor - error code: OtherCompilationError (5)
 UnrealHeaderTool failed for target 'TwinStickShooterEditor' (platform: Win64, module info: C:\Users\XXXX\Documents\Unreal Projects\TwinStickShooter\Intermediate\Build\Win64\TwinStickShooterEditor\Development\UnrealHeaderTool.manifest).
 CompilerResultsLog: New page: Compilation - 24 Apr 2016 3:29:05 am
 CompilerResultsLog: Info Creating makefile for hot reloading TwinStickShooter (no existing makefile)
 CompilerResultsLog: Info Compiling game modules for hot reload
 CompilerResultsLog: Info Performing full C++ include scan (no include cache file)
 CompilerResultsLog: Info Parsing headers for TwinStickShooterEditor
 CompilerResultsLog: Info   Running UnrealHeaderTool "C:\Users\XXXX\Documents\Unreal Projects\TwinStickShooter\TwinStickShooter.uproject" "C:\Users\XXXX\Documents\Unreal Projects\TwinStickShooter\Intermediate\Build\Win64\TwinStickShooterEditor\Development\UnrealHeaderTool.manifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended
  -WarningsAsErrors -installed -FailIfGeneratedCodeChanges
 CompilerResultsLog: Info ERROR: 'C:/Users/XXXX/Documents/Unreal Projects/TwinStickShooter/Intermediate/Build/Win64/UE4Editor/Inc/TwinStickShooter/BaseCharacter.generated.h': Changes to generated code are not allowed - conflicts written to 'C:/Users/XXXX/Documents/Unreal Projects/TwinStickShooter/Intermediate/Build/Win64/UE4Editor/Inc/TwinStickShooter/Bas
 eCharacter.generated.h.conflict'
 CompilerResultsLog:Error: Error Error: Failed to generate code for TwinStickShooterEditor - error code: OtherCompilationError (5) 
 CompilerResultsLog: Info UnrealHeaderTool failed for target 'TwinStickShooterEditor' (platform: Win64, module info: C:\Users\XXXX\Documents\Unreal Projects\TwinStickShooter\Intermediate\Build\Win64\TwinStickShooterEditor\Development\UnrealHeaderTool.manifest).
 LogMainFrame: MainFrame: Module compiling took 5.323 seconds
Product Version: UE 4.11
Tags:
more ▼

asked Apr 23 '16 at 07:34 AM in Using UE4

avatar image

Halcon_
5 1 4 6

avatar image Halcon_ Apr 23 '16 at 09:06 AM

It seems I can still load the c++ files from opening visual basic from the engine. What does this error do then?

avatar image Halcon_ Apr 24 '16 at 12:37 AM

Bump? (5 Chars Needed)

avatar image Shadowriver Apr 24 '16 at 02:20 AM

Can your show header file of BaseCharacter? Also try rebuilding and deleteing Intermediete directory in project directory (you need to regenerate VS project files, you have option for that by right clicking uproject file)

The issue seems to be in generated files by UHT

avatar image Halcon_ Apr 24 '16 at 06:37 AM

I only got the error when I create the file, but the file still gets created completely fine, I just open VS from unreal engine and it works fine. I suppose the error doesn't really matter anyway, I have not noticed anything, but if you know that it is bad, just comment again please, thanks your time though.

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

0 answers: sort voted first
Be the first one to answer this question
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