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

}

}

相关推荐
HAPPY酷10 小时前
从Public到Private:UE5 C++类创建路径差异全解析
java·c++·ue5
1204157137 肖哥3 天前
UE5.7 Procedural Vegetation分析
ue5
半天法师3 天前
Bug 记录:UE 结构体转 JSON 时 Key 字段大小写异常 (Editor 与打包后表现不一致)
ai·ue5·json·bug
邪修king4 天前
UE5 零基础入门第四弹:UMG UI 系统入门,从静态界面到逻辑联动
c++·ui·ue5
HAPPY酷5 天前
UE5 开发工具链配置清单
ue5
晴夏。5 天前
UE5第三人称模板实现及相关引擎源码分析
unity·ue5·游戏引擎·ue
HAPPY酷5 天前
UE5 C++ 避坑指南:暴力移除 Electronic Nodes 插件,回归纯净开发
开发语言·c++·ue5
晴夏。5 天前
UE原生第三人称相机源码分析
游戏·ue5·ue4·相机·ue·3c
郑寿昌7 天前
UE5中FBX材质丢失终极修复指南
ue5·材质
郑寿昌8 天前
AI生成的FBX格式导入UE5模型的兼容性优化指南
ue5