If a multi-line comment is made in a header file using the format /*/ at the beginning and ending of the comment, UHT will fail to compile the project and will display the following errors:
1> C:/Users/Tim.Lincoln/Documents/Unreal Projects/TestComment 4.10/Source/TestComment/MyActor.h(26) : End of class header encountered inside comment 1>Error : Failed to generate code for TestCommentEditor - error code: OtherCompilationError (5)
This may be similar to [Link Removed].
RESULT:
The build fails with the message End of class header encountered inside comment
EXPECTED:
The build completes successfully.
WORKAROUND:
Adding spaces allows the build to complete successfully. For example, the following works fine:
/* / virtual void BeginPlay() override; / */
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.8.3, 4.10 |
Target Fix | 4.10 |
Created | Aug 7, 2015 |
---|---|
Resolved | Aug 17, 2015 |
Updated | Feb 5, 2017 |