Reputation: 1
I'm migrating from Unity to Unreal for a project. To familiarise myself, I'm following this tutorial.
https://docs.unrealengine.com/en-US/Programming/QuickStart/index.html
Within the cpp file, I keep getting errors. To list some
"pointer to incomplete class type is not allowed" "name followed by '::' must be a class or namespace name" ...
These are very likely the result of some things not properly connected between visual studio and Unreal. The code does compile and works as it should in Unreal, but it's a pain to develop without IntelliSense.
I tried reinstalling visual studio, using VS 2017 and VS 2019, starting a new project and in the end, even reinstalling windows but I keep getting this error. Errors
Upvotes: 0
Views: 597
Reputation: 121
VTT is correct.
Anyway, i checked the image you posted.
The error "pointer to incomplete class type is not allowed" appears when you did not #include something. You are trying to use ConstructorHelpers::FObjectFinder
. Did you include at the top of .cpp or in its .h file the:
#include "UObject/ConstructorHelpers.h"
The problem is not in the installations you mentioned (VS, Windows, etc). You must check one by one the errors...
Upvotes: 1