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

}

}

相关推荐
邪修king5 小时前
UE5 零基础入门第二弹:让你的几何体 “活” 起来 ——Actor 基础与蓝图交互入门
c++·ue5·交互
Дерек的学习记录6 小时前
Unreal Eangie 5:蓝图编程
开发语言·学习·ue5
吴梓穆18 小时前
UE5 c++ 常用方法
java·c++·ue5
吴梓穆2 天前
UE5 无法修改Actor的图层
ue5
GentooEmacs2 天前
UnrealEngine(UE5)阿耳忒弥斯2号绕月飞行模拟
ue5·阿耳忒弥斯2号·绕月飞行·spice星历
吴梓穆2 天前
UE5 C++ 两种枚举
开发语言·c++·ue5
邪修king2 天前
【UE4/UE5 萌新向】有C++基础如何快速入门虚幻引擎?超详细图文全揭秘!
c++·ue5·ue4
Kang.Charles3 天前
UE游戏性能优化归结(基于UE5环境)
游戏·ue5
吴梓穆3 天前
UE5 Invideo 插件,拉取rtsp视频流
ue5
曼巴UE54 天前
Unlua 官方案例
c++·ue5·lua·ue