Project not compiling

Tested it with the fresh installation of 4.8.3 version and it didn’t work neither…

Hey -

Just to double check, are you using the engine from source code or the binary version? Also, what classes were changed in your original post? Do you have the same problem trying to compile projects using the 4.9 preview?

I am not using source control but the default UE4 code. To be honest I am not 100% anymore what classes I changed back then but I know that I added some UDamageType classes and apart from that nothing special. I will download the 4.9 preview and test with it.

Compiling with 4.9 preview works.

No, neither a verify nor a re-installation works.

and a clean 4.8.3 install does not?

Hello ,

I would like to clarify a few things to be sure that everything is correct.

  • You’re able to build a C++ project in 4.7 and 4.9, but not with 4.8
  • Your 4.8 version of the engine is a version that you have downloaded from the Epic Games Launcher.
  • You have tried building in both DebugGame Editor and Development Editor configurations
  • You’ve also attempted reinstalling 4.8 and verifying the installation.

I saw that you mentioned that when you attempting to build for Development Editor, it became stuck on Hot Reloading. Have you tried compiling a UE4 C++ project while the editor is closed? This should skip the hot reload feature and could possibly help identify the problem.

All points you mentioned are correct. And I always compiled with the editor closed except the one time I tried hot reload. Also some days ago I wanted to open the project in 4.7 and 4.9 preview, but the compile during conversion for the copy got stuck in both.

A quick update: I downloaded 4.9 and tried to open a copy of my 4.83 project. The engine crashed probably while it was compiling, so I opened the solution file and tried to compile it. Now I get the same error (MSB4166) like when building this project with 4.8.

When using 4.9, does this only happen with the project that you copied over from 4.8.3 or does it also occur with fresh C++ projects created with 4.9?

I could compile new projects in 4.9 preview and successfully converted a 4.7 project with release version.

So for now the issues are solved on your side?

No not really as I still cannot open my main 4.8 project.

have you tried it on another machine?

No, I don’t have another machine capable for the UE4.

As it seems that the issue could be project specific, would it be possible for you to upload a copy of this project that is giving you issues to see if it can occur for me as well? If you’d like to keep the project itself private, you could send a link to the project to me in a private message on the forums. Here is my

The issue is not project specific as I neither could compile a new 4.8 project.

I found the solution!

Today I pasted some classes of my corrupted project into a new project to save time, when I noticed that I suddenly received the same error as with my old project. After some testing I figured out what files were causing the problem and when I had a closer look at them I realized that I accidently created a circular inheritance. Once I changed the according file the project compiled again for the first time after almost 1 month!

I don’t know though why also a new 4.8 project didn’t compile back then, maybe it would have worked if I restarted my computer before trying a new project.

Anyways thanks for the help!