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

}

}

相关推荐
BugPhysician1 天前
影之刃零首发UE崩溃排查:着色器缓存、虚拟内存与驱动版本
ue5·影之刃零·影之刃零报错·影之刃零进不去·ue崩溃·ue引擎崩溃·ue5引擎崩溃
电子云与长程纠缠3 天前
UE5魂系游戏开发教程05
开发语言·学习·游戏·ui·ue5
fanfan_hongyun3 天前
UE5.1 蓝图调用C++方法
ue5
易知微EasyV数据可视化3 天前
UE5 中接入 GDAL:从vcpkg编译到插件打包
ue5
努力学习的小廉3 天前
UE5入门系列(一):环境搭建.md
ue5
fanfan_hongyun3 天前
【UE5.1 创建C++文件】
c++·ue5
努力学习的小廉4 天前
UE5 入门系列(二):编辑器基础操作速通
ue5·编辑器
Дерек的学习记录4 天前
Unreal Engine 5:开关门实现和流程控制
开发语言·学习·ue5
远离UE45 天前
拉格朗日 动力学问题
ue5·图形渲染·图形学·动力学
远离UE410 天前
UE5 Substrate Thin Film 源码拆析
开发语言·javascript·ue5