Using all caps for the name of a struct defined in code that includes a constructor will cause the build of the project to fail in Visual Studio. The error that is given suggests that a semi-colon is missing, and points to the line where the struct's constructor is located.
This is possibly related to [Link Removed].
REGRESSION:
Yes. This would build without any problems in 4.14.3.
USTRUCT(BlueprintType) struct FTESTSTRUCT { GENERATED_USTRUCT_BODY() FTESTSTRUCT() {} };
RESULT:
The build fails with the following error on the line of the struct's constructor: error : Unexpected '}'. Did you miss a semi-colon?
EXPECTED:
The build completes successfully.
WORKAROUND:
Do not use all caps in the name of the struct. If any letter in the struct's name is not capitalized, the project will build successfully. The build also completes successfully if no constructor is included in the struct.
UE-74991 also affects Valve Index
I am not able to find world outliner how to enable it?
How can i modify the param name in EQS node
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
Hey, why do i get this when i snap two similar meshes together?
When I open UE4 4.24.3 it appears that. Does anyone know how to solve?
What method is used to fill polygonal regions when drawing spline mesh at run time?
How to achieve HLSL Multiple Render Target in Material blueprints?
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Foundation - Cpp Tools - UnrealHeaderTool |
---|---|
Affects Versions | 4.15.2, 4.16, 4.17 |
Target Fix | 4.18 |
Created | May 11, 2017 |
---|---|
Resolved | Aug 30, 2017 |
Updated | Sep 26, 2017 |
3561 - projectgheist |