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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Updating Ue4

The project could not be compiled. Would you like to open it in Visual Studio?

 Running C:/Program Files/Epic Games/UE_4.21/Engine/Binaries/DotNET/UnrealBuildTool.exe Development Win64 -Project="C:/Users/Cinnnika Z/Documents/Unreal Projects/SuperNinjinMARS/SuperNinjinMARS.uproject" -TargetType=Editor -Progress -NoHotReloadFromIDE
 Creating makefile for SuperNinjinMARSEditor (no existing makefile)
 Performing full C++ include scan (no include cache file)
 Using Visual Studio 2017 14.16.27023 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023) and Windows 10.0.17763.0 SDK (C:\Program Files (x86)\Windows Kits\10).
 @progress push 5%
 Parsing headers for SuperNinjinMARSEditor
   Running UnrealHeaderTool "C:\Users\Cinnnika Z\Documents\Unreal Projects\SuperNinjinMARS\SuperNinjinMARS.uproject" "C:\Users\Cinnnika Z\Documents\Unreal Projects\SuperNinjinMARS\Intermediate\Build\Win64\SuperNinjinMARSEditor\Development\SuperNinjinMARSEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
 C:/Users/Cinnnika Z/Documents/Unreal Projects/SuperNinjinMARS/Source/SuperNinjinMARS/BaseCharacter.h(18): Error: #include found after .generated.h file - the .generated.h file should always be the last #include in a header
 Error: UnrealHeaderTool failed for target 'SuperNinjinMARSEditor' (platform: Win64, module info: C:\Users\Cinnnika Z\Documents\Unreal Projects\SuperNinjinMARS\Intermediate\Build\Win64\SuperNinjinMARSEditor\Development\SuperNinjinMARSEditor.uhtmanifest, exit code: OtherCompilationError (5)).

Product Version: UE 4.21
Tags:
more ▼

asked Feb 09 '19 at 03:40 AM in Installation & Setup

avatar image

Ci2nki333
1 1 4

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

2 answers: sort voted first

As stated in the error, open up BaseCharacter.h and make sure #include BaseCharacter.generated.h is the last include

more ▼

answered Feb 09 '19 at 09:23 AM

avatar image

Shadowriver
35.7k 926 168 1104

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

according to #8 you have some include after your .generate.h file. make sure moving it before that what ever ends with .generate.h should always be the last header file

 C:/Users/Cinnnika Z/Documents/Unreal Projects/SuperNinjinMARS/Source/SuperNinjinMARS/BaseCharacter.h(18): Error: #include found after .generated.h file - the .generated.h file should always be the last #include in a header
more ▼

answered Feb 09 '19 at 11:24 AM

avatar image

plangton
352 17 20 31

avatar image Ci2nki333 Apr 20 '19 at 07:40 AM

alt text

Thank you but it is. ???

avatar image plangton Apr 24 '19 at 12:03 PM

As i told above, you have includes after BaseCharacter.h i can see them in your file in lines 18 and 19. both are excessive as they are duplicate of lines 6 and 7. delete them and this error should not occur.

PS : although you can add include anywhere in your file, try to avoid this practice as much as possible and only add them at the beginning. obviously there are exceptions that force you to do so

(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