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

}

}

相关推荐
Дерек的学习记录2 小时前
Unreal Engine 5:前置知识和入门基础
学习·ue5
GentooEmacs16 小时前
unreal中渲染地球 通用静态磁层场线
ue5·数字孪生·太阳系·unrealengine·太空·地球磁场
思麟呀2 天前
UE蓝图初步
ue5
吴梓穆2 天前
UE5VSC++开发 一 环境准备
ue5
电子云与长程纠缠2 天前
UE5 地形纹理高度混合
ue5
朗迹 - 张伟2 天前
UE5 C++学习笔记
c++·学习·ue5
成都渲染101云渲染66662 天前
C4D/Blender云渲染计费详解|5090显卡实测:速度对比+成本核算
3d·ue5·blender·maya·houdini
朗迹 - 张伟3 天前
UE5 UMG学习笔记
笔记·学习·ue5
平行云3 天前
数字孪生信创云渲染系列(一):混合信创与全国产化架构
unity·ue5·3dsmax·webgl·gpu算力·实时云渲染·像素流送
吴梓穆4 天前
UE5手动放置的树有碰撞,地形刷出来的没有
ue5