I tried I set Development Editor but Failed too. (Same Error)
I tried delete .vs/, Binaries/, Intermediate/, Saved/, Project.sln and Generate Visual Studio Project and Rebuild again but doesn’t work too. (Same Error)
If I delete the new class. I can rebuild can compile and everything work fine. (No Error)
I can’t create any class even the class that none-inherit but failed too. (Same Error)
I tried create new class from other project and copy into my project and replace “class NAME_API” and do (3.) but doesn’t work too. (Same Error)
If I delete #include “”, I can rebuild project and compile successful (No Error)
I tried a lot of solution in google but doesn’t help!
If I delete .git/ I can rebuild and compile. But WHY!? I have to use git for my team.
You can not create a new C++ class because your project does not compile.
It does not compile because the math functions you are using are not part of the global namespace in your Unreal project.
I am not a professional C++ developer and I may be wrong but it seems to me that you are using the Standard Library math functions which is discouraged in Unreal.
Please replace the following functions with their corresponding functions from FGenericPlatformMath. Alternately you can try adding “std::” in front of them and see if it works.
I had an issue with some symbols not found and no compile could solve the problem. What I ended doing was to remove every folder from the project root except Source, Content and Config and just the file ProjectName.uproject. Then I launched the game double click the .uproject file and it recompiled everything with no error.
I had no .git folder but I would have kept it has it is not influencing the build.
Solution:
if Unreal’s project have “git”, UE4 will try to use “git status” for detect changed file. This is a bug that made me compile unsuccessful. (I’m not sure but I think UE4 try to compile only changed file)
I have to ignore this step and compile everything. IT’S SUCCESSFUL
How to ignore this step:
Edit “C:\Users\NAME\AppData\Roaming\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml” file to
I had the same problem, and my couse was incorrect project folder name: 700km. Found this after 1 day of crying and anger. Just renamed to name without numbers and all works fine and compiling.
The fix is just the include.
Lets say you create a C++ called Framework\FileComponent.
The CPP will include a file called “Framework\FileComponent.h”
Open the CPP and replace the “Framework” with “.”, so it reads “.\FileComponent.h” or better yet “FileComponent.h”