Including files with a .cc extension instead of .cpp in a code project used to build fine in Visual Studio. This is no longer the case in 4.21.2. The error message that results indicates that only C++ files are expected to have CachedCPPEnvironments. However, the .cc extension is considered to be a C++ file.
REGRESSION:
Yes. This did not occur in 4.21.1. It also does not occur in Main, but this may be because whichever change resulted in this error occurring has not been merged back into Main yet.
RESULT:
The build fails with the following error: UnrealBuildTool : error : Was only expecting C++ files to have CachedCPPEnvironments!
EXPECTED:
The build completes successfully.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-68548 in the post.
32 |
Component | UE - Foundation - Cpp Tools |
---|---|
Affects Versions | 4.21.2 |
Target Fix | 4.22 |
Created | Jan 15, 2019 |
---|---|
Resolved | Jan 16, 2019 |
Updated | Jan 23, 2019 |