Building the Engine in Visual Studio will fail due to an unresolved external symbol error if a new global variable is added to CoreGlobals.h and then referenced elsewhere in the Engine code. The build will only complete successfully if a full rebuild is performed.
RESULT:
The build will fail with an unresolved external symbol error similar to the following
error LNK2001: unresolved external symbol "__declspec(dllimport) bool GIsTestGlobal" (__imp_?GIsTestGlobal@@3_NA)
EXPECTED:
The build completes successfully.
WORKAROUND:
Perform a full rebuild of the UE4 project.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-54967 in the post.
1 |
Component | UE - Foundation - Cpp Tools - UnrealBuildTool |
---|---|
Affects Versions | 4.16.3, 4.18.3, 4.20 |
Created | Feb 7, 2018 |
---|---|
Resolved | Feb 15, 2018 |
Updated | Sep 27, 2018 |