Hi! I just recently started a new project, but I keep getting compiler errors when building new headers or changes to existing headers, and I can't tell why.
I don't have this issue with my older project.
This is all the code is so far:
And these are the errors:
Any suggestions?
I don't have this issue with my older project.
This is all the code is so far:
Code:
#pragma once #include "CoreMinimal.h" #include "WinstickPawn.h" #include "WSNPC.generated.h" /** * */ UCLASS() class WINSTICK_API AWSNPC : public AWinstickPawn { GENERATED_BODY() public: UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Dialogue) FString Dialogue; AWSNPC(); protected: virtual void BeginPlay() override; public: virtual void Tick(float DeltaTime) override; virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override; };
Code:
Severity Code Description Project File Line Suppression State Error LNK1120 4 unresolved externals Winstick X:\Unreal\Unreal Projects\Winstick\Binaries\Win64\UE4Editor-Winstick.dll 1 Error MSB3073 The command "Z:\UE\UE_4.25\Engine\Build\BatchFiles\Rebuild.bat WinstickEditor Win64 Development -Project="X:\Unreal\Unreal Projects\Winstick\Winstick.uproject" -WaitMutex -FromMsBuild" exited with code -1. Winstick C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets 49 Error LNK2001 unresolved external symbol "protected: virtual void __cdecl AWSNPC::BeginPlay(void)" (?BeginPlay@AWSNPC@@MEAAXXZ) Winstick X:\Unreal\Unreal Projects\Winstick\Intermediate\ProjectFiles\WSNPC.gen.cpp.obj 1 Error LNK2001 unresolved external symbol "public: virtual void __cdecl AWSNPC::SetupPlayerInputComponent(class UInputComponent *)" (?SetupPlayerInputComponent@AWSNPC@@UEAAXPEAVUInputComponent@@@Z) Winstick X:\Unreal\Unreal Projects\Winstick\Intermediate\ProjectFiles\WSNPC.gen.cpp.obj 1 Error LNK2001 unresolved external symbol "public: virtual void __cdecl AWSNPC::Tick(float)" (?Tick@AWSNPC@@UEAAXM@Z) Winstick X:\Unreal\Unreal Projects\Winstick\Intermediate\ProjectFiles\WSNPC.gen.cpp.obj 1 Error LNK2001 unresolved external symbol "public: __cdecl AWSNPC::AWSNPC(void)" (??0AWSNPC@@QEAA@XZ) Winstick X:\Unreal\Unreal Projects\Winstick\Intermediate\ProjectFiles\WSNPC.gen.cpp.obj 1 Error LNK2019 unresolved external symbol "public: __cdecl AWSNPC::AWSNPC(void)" (??0AWSNPC@@QEAA@XZ) referenced in function "public: static void __cdecl AWSNPC::__DefaultConstructor(class FObjectInitializer const &)" (?__DefaultConstructor@AWSNPC@@SAXAEBVFObjectInitializer@@@Z) Winstick X:\Unreal\Unreal Projects\Winstick\Intermediate\ProjectFiles\WSNPC.cpp.obj 1
Comment