LNK 2019 and LNK2001 Errors when creating a default class

When I initially open my project and hit compile, everything runs smoothly. But as soon as I try to create a new C++ class (I am trying to create my own data table format so I am creating a new data table object) the build fails and gives me 2019 and 2001 errors. I’m not sure if this is the error, but when I try to create the class, the public and private options are greyed out. Any info on what may be causing these errors?

Can you post your .h files?

My .h file for my data table (called nodeDataTable) looks like:

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "Engine/DataTable.h"
#include "nodeDataTable.generated.h"

class SIGNSHOOTPROJECT_API UnodeDataTable : public UDataTable

Hello, apomerenk

Sorry to hear about your issue.

Please make sure that you have ENGINE_API macro before declarations of FinishDestroy(), Serialize(), AddReferencedObject() methods in DataTable.h.

Hope this helped!

Have a great day!

I’m very new to C++ programming I have done the majority of my project in blueprint. Could you point me in the right direction for doing this?

You can find DataTable.h in Engine/Source/Runtime/Engine/Classes/Engine folder.

I am still lost so I ended up just deleting the data tables and am starting over with that aspect. But I still have the error for the node actor (the second to last error in the screenshot) and that actor class is something that I need and am using frequently. How could I get rid of that?

Please make sure that constructor for NodeActor is defined correctly.
Also a good way to prevent possible errors would be to clean temporary project files and build again.

I built an entirely new project and as soon as I try to add a c++ class based on the table actor I get the same error.

Could you please tell me what version of the Engine are you using?

Please note that you can grab the entire Engine source from Github.
If you like to learn more about this, please go here:

I ended up getting 4.8 and redoing the project fixed the error.