Hi, in vehicle blueprint template game i made new actor based class and try use UE_LOG from .cpp file, but get couple of error, .cpp file contain next things:
#include “Twisted_cars.h”
#include “Engine.h”
#include “SimpleSteamIntegrationClass.h”
ASimpleSteamIntegrationClass::ASimpleSteamIntegrationClass(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
UE_LOG(YourLog, Warning, TEXT(“test”));
}
errors are:
Error 2 error C2653: ‘FLogCategoryYourLog’ : is not a class or namespace name
Error 3 error C2065: ‘CompileTimeVerbosity’ : undeclared identifier
Error 4 error C2065: ‘YourLog’ : undeclared identifier
Error 5 error C2228: left of ‘.IsSuppressed’ must have class/struct/union
Error 6 error C2228: left of ‘.GetCategoryName’ must have class/struct/union
Error 7 error C2660: ‘FMsg::Logf’ : function does not take 4 arguments
Any idea how solve it?