UE5 Error LNK2019 编译异常修复备忘

UE5编译常见异常:

复制代码
Error LNK2019 : 无法解析的外部符号 ** 中引用了该符号

  已定义且可能匹配的符号上的提示:"private: bool __cdecl *::*(void)"

大概率是因为在 *.Build.cs 文件中缺少相应模块引用:

// Copyright Epic Games, Inc. All Rights Reserved.

using UnrealBuildTool;

public class PipeSDKPlugin : ModuleRules

{

public PipeSDKPlugin(ReadOnlyTargetRules Target) : base(Target)

{

PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;

PublicDependencyModuleNames.AddRange(new string\[\] { "Core", "CoreUObject", "Engine", "InputCore", "EnhancedInput" ,"新增模块引用"});

PrivateDependencyModuleNames.AddRange(new string\[\] { });

// Uncomment if you are using Slate UI

// PrivateDependencyModuleNames.AddRange(new string\[\] { "Slate", "SlateCore" });

// Uncomment if you are using online features

// PrivateDependencyModuleNames.Add("OnlineSubsystem");

// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true

}

}

相关推荐
吴梓穆9 小时前
UE5 C++ 注册 开始重叠和结束重叠事件
开发语言·c++·ue5
妙为1 天前
unreal engine5(UE5)中使用Rider
ue5·游戏引擎·虚幻·rider
归真仙人3 天前
【UE】LineTraceByProfile
ue5·游戏引擎·ue4·unreal engine
-FxYaM-4 天前
【UE】渲染框架学习路径-初次修改源码
服务器·网络·c++·windows·ue5·unreal engine
一锅炖出任易仙6 天前
创梦汤锅学习日记day23
学习·ai·ue5
妙为8 天前
unreal engine5.7.4,创建ThirdPerson第三人称模版,类型是c++崩溃
c++·ue5·虚幻·unreal engine5
weixin_4046793111 天前
虚幻5电子书
ue5
directx3d_beginner12 天前
5,动画蓝图类接口转c++
ue5
RuiZN12 天前
UE5 蓝图 FPS 02 Event Beginplay
c++·ue5
RuiZN12 天前
UE5 蓝图 FPS 01 Event Tick
c++·ue5