Adding a new code class derived from AnimInstance will cause the Visual Studio build to fail in a project based on the code Vehicle template. The build errors indicate that there are problems in the ShowFlags.h file:
WORKAROUND:
Add the line #include "EngineBaseTypes.h" to the ShowFlags.h file.
RESULTS:
The build fails.
EXPECTED:
The build succeeds.
1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(378): error C2065: 'EViewModeIndex' : undeclared identifier 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(378): error C2146: syntax error : missing ')' before identifier 'ViewModeIndex' 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(378): error C2182: 'ApplyViewMode' : illegal use of type 'void' 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(378): error C2491: 'ApplyViewMode' : definition of dllimport data not allowed 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(378): error C2059: syntax error : ')' 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(381): error C2061: syntax error : identifier 'EViewModeIndex' 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(387): error C2146: syntax error : missing ';' before identifier 'FindViewMode' 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(387): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(390): error C2146: syntax error : missing ')' before identifier 'ViewModeIndex' 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(390): error C2440: 'initializing' : cannot convert from 'int' to 'const TCHAR *' 1> Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast 1>d:\main-builds\ue4\engine\source\runtime\engine\public\ShowFlags.h(390): error C2059: syntax error : ')'
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Gameplay |
---|---|
Affects Versions | 4.5.1, 4.6, 4.7 |
Fix Commit | 2373654 |
---|
Created | Dec 1, 2014 |
---|---|
Resolved | Dec 2, 2014 |
Updated | Apr 27, 2018 |