Attempting to build the Engine using Visual Studio 2017 will fail if Visual Studio 2013 is also installed on the same computer. If Visual Studio 2013 is uninstalled, or if the computer has Visual Studio 2013, 2015, and 2017 all installed, the build will complete successfully.
SETUP:
This repro requires a computer that has both Visual Studio 2013 and Visual Studio 2017 installed (not Visual Studio 2015), with all necessary dependencies that are needed to work with Unreal Engine 4. Community editions of Visual Studio 2013 and 2017 seem to work fine for this repro.
RESULT:
The build will fail and show the following error: error C2248: 'TUniquePtr<FClassMetaData,TDefaultDelete<T>>::TUniquePtr' : cannot access private member declared in class 'TUniquePtr<FClassMetaData,TDefaultDelete<T>>'
EXPECTED:
The build completes successfully.
WORKAROUND:
Uninstall Visual Studio 2013. This will require the Win 8.1 SDK to be re-installed since uninstalling Visual Studio 2013 also uninstalls the SDK.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-43142 in the post.
3 |
Component | UE - Foundation - Build - Farm |
---|---|
Affects Versions | 4.15 |
Created | Mar 21, 2017 |
---|---|
Resolved | Jun 27, 2017 |
Updated | Jul 14, 2021 |