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

}

}

相关推荐
dong1326972 天前
UE5FPS游戏开发教程(一)
ue5
朗迹 - 张伟3 天前
UE5.8 用Trae的AI开发功能
ue5
日月云棠5 天前
UE5 Lyra Teams模块深度分析:从队伍创建到伤害判定的完整链路
ue5
日月云棠7 天前
UE5 Lyra Inventory 物品系统模块深度分析——从数据定义到网络同步的完整链路
ue5
日月云棠9 天前
UE5 Lyra Weapons 模块深度分析——从装备实例到弹道散布的完整武器系统
ue5
清泓y9 天前
UE5程序化生成技术
ue5
清泓y10 天前
UE5--VR与AR开发技术
ue5·ar·vr
日月云棠10 天前
UE5 Lyra Messages 模块深度解析——从一条击杀消息看游戏事件系统的设计哲学
游戏·ue5
日月云棠11 天前
UE5 Lyra Input 模块:从手柄摇杆到技能释放,一条链路如何做到零耦合
ue5
日月云棠14 天前
UE5 Lyra源码分析——Audio_Analysis音频模块全面分析
ue5·音视频