Hi,
I recently added a new empty c++ class to the project I must have done something wrong in the process as I’ve started getting “expected ;” error in all other class .h files in the class declaration line. (class PROJECTNAME_API ClassName : public UObject )
Also, IMPLEMENT_PRIMARY_GAME_MODULE is also showing error “expected type is missing” error in the project.cpp file!
I’ve deleted the new empty class files to try to fix this but that is not helping.
So now the project is not building and also it is not starting at all since it is not compiling.
The project.h only has the below line.
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
And the cpp file looks like this:
// Copyright Epic Games, Inc. All Rights Reserved.
#include "CarSportManager.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, CarSportManager, "CarSportManager" );
I don’t know how to fix this.
Any help is greatly appreciated!
Thanks in advance!