Download

Error compiling UE 4.24.1 after updating visual studio 2019

Hi, I’m having a weird error after updating visual studio 2019 community from v16.4.5 to 16.5. Even a fresh install of the engine will no longer build. I’m getting the errors listed below. The build doesn’t fail until the end of compiling all modules:

[FONT=courier new]Warning C4996 ‘TBaseMulticastDelegate<void>::AddRaw::FDeprecationMsg_788::condition’: Binding a delegate with a const object pointer and non-const function is deprecated. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. UE4 H:\OMG Projects\ROVE\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl 788

Error C4800 Implicit conversion from 'ADODB::_Recordset *const ’ to bool. Possible information loss UE4 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\INCLUDE\comip.h 311

Error C4800 Implicit conversion from 'ADODB::_Connection *const ’ to bool. Possible information loss UE4 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\INCLUDE\comip.h 311

Warning C4996 ‘AActor::Role’: This member will be made private. Please use GetLocalRole or SetRole. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. UE4 H:\OMG Projects\ROVE\Engine\Plugins\Marketplace\DirGravity\Source\DirGravity\Private\GravityMovementComponent.cpp 290

Warning C4996 ‘AActor::Role’: This member will be made private. Please use GetLocalRole or SetRole. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. UE4 H:\OMG Projects\ROVE\Engine\Plugins\Marketplace\DirGravity\Source\DirGravity\Private\GravityMovementComponent.cpp 822

Warning C4996 ‘AActor::ReplicatedMovement’: This member will be made private. Please use GetReplicatedMovement or SetReplicatedMovement. Please update your code to the new API before upgrading to the next release, otherwise your project will no longer compile. UE4 H:\OMG Projects\ROVE\Engine\Plugins\Marketplace\DirGravity\Source\DirGravity\Private\GravityMovementComponent.cpp 825

Error MSB3075 The command “…\Build\BatchFiles\Build.bat -Target=“UE4Editor Win64 Development” -Target=“ShaderCompileWorker Win64 Development -Quiet” -WaitMutex -FromMsBuild” exited with code 5. Please verify that you have sufficient rights to run this command. UE4 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets 44

Seeing as good ol’ Microsoft doesn’t have archives of installers for VS Community, only Enterprise and Pro, I’m kind of suddenly stuck here. Anyone ever run into this problem before?

What’s odd to me is that the error points to code in Visual Studio’s own source code.

I am getting this error to trying to build an editor with 4.24.3.

What version of visual studio are you using?

Microsoft Visual Studio Community 2019
Version 16.5.1

VS2019 isn’t officially supported yet (to my knowledge). Also, make sure you use the version that Epic’s build farm uses. While it’s tempting to always be on the latest version of VS, it will cause compile issues like this. Even small updates x.x.3 -> x.x.4 can cause no end of headaches.

You can try and add the error (C4800) to the list of ignored errors in the .build.cs files, but other than that - you may be hosed and should drop down to VS2017 if possible.

From the 4.24 Release Notes:

This error seems to have been fixed in one of the commits in the 4.25 branch. If you’re interested in what you need to do to fix this error, you can check out the commit here, https://github.com/EpicGames/UnrealEngine/commit/25cefc81fe24c767eb995b0bb66b5611e0596973

Wow guys, thanks for this info, very useful. I’ll try and change those lines @DaneBrick and see if that does it. If not, looks like I’ll need to upgrade to 4.25 (once it’s out of preview)

Going to 2017 fixed it for me. Not sure why I thought 4.24 needed 2019 but its all good now. You do have to update the windows SDK separately from what comes in 2017 or you will get some compile errors as well FYI for anyone else reading this.

This worked for me! I manually changed the code in my version of UE (4.24.1) and it compiled wonderfully! Thanks for the info!

Thanks for this, updating the code worked for me as well on 4.24.3.

I am going to try this to see if it works

page not found 404 error

The 404 error goes away if you’re signed in to GitHub.

may be
#pragma warning(disable : 4800)