Failed to add class

I tried to make another actor class in the C++ quickstart guide but it came up with this message:

Failed to add class MyActor2. Failed to automatically hot reload the ‘QuickStart’ module.

I also tried making a new project and changing the name but the same error occurred. I have only just set up UE4 and downloaded Visual Studio.

Does the Output Log (File → Developer Tools → Output Log) show any more details about why this failed?

Thanks.

That file should be included with Visual Studio - which version of Visual Studio are you using?

I assume you’re able to build your game normally (outside of the editor hot-reload)?

-Info Parsing headers for QuickStartEditor

-Info Reflection code generated for QuickStartEditor

-Info Performing 3 actions (2 in parallel)

-Info MyActor3.cpp

-Info QuickStart.generated.cpp

-Info [3/3] Link UE4Editor-QuickStart-4952.dll

-Error LINK : fatal error LNK1181: cannot open input file ‘delayimp.lib’
-Info -------- End Detailed Actions Stats ----------------------------------------------------------
-Info ERROR: UBT ERROR: Failed to produce item: —C:\Users\MyName\Documents\Unreal Projects\QuickStart\Binaries\Win64\UE4Editor-QuickStart-4952.dll
Info Cumulative action seconds (4 processors): 0.00 building projects, 13.28 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.13 linking, 0.00 other
Info UBT execution time: 18.35 seconds

2013, I have built my game after creating my first actor which worked but I cannot create any other actors in any project i create or in my current project.

I found what I think is a related question. Does the solution here help you at all?

Thanks that solved it

I have the same problem .have you got the answer ?

Did the solution linked in my answer not work for you?