欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

【UE】Ureal引擎使用问题记录

程序员文章站 2022-06-10 21:19:53
...
  1. E:\workspace\Unreal Project\ActionGSZ\Source\ActionGSZ\Private\GSZCharacterBase.cpp(293) : error C3861: ‘RemoveStartupGameplayAbilities’: identifier not found
    E:\workspace\Unreal Project\ActionGSZ\Source\ActionGSZ\Private\GSZCharacterBase.cpp(294) : error C2065: ‘CharacterLevel’: undeclared identifier
    答:函数不在类作用域内。检查类名、方法名是否正确。

  1. error C2071: ‘uint8’: illegal storage class
……
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(22) : error C2143: syntax error: missing '{' before '<'
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(22) : error C2059: syntax error: '<'
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(23) : error C3856: 'SelectIntPointerType': symbol is not a class template
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(37) : error C2071: 'uint8': illegal storage class
   F:\SDK\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\GenericPlatform/GenericPlatform.h(40) : error C2071: 'uint16': illegal storage class
……
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\INCLUDE\xtr1common(19): error C2061: syntax error: identifier 'std'
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\INCLUDE\xtr1common(19): error C2059: syntax error: ';'
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\INCLUDE\xtr1common(19): fatal error C1003: error count exceeds 100; stopping compilation
……

答:https://answers.unrealengine.com/questions/1053889/view.html


  1. unresolved external symbol
GSZInventoryInterface.gen.cpp.obj : error LNK2001: unresolved external symbol "public: virtual class TMulticastDelegate<void __cdecl(struct FGSZItemSlot,class UGSZItem *),struct FDefaultDelegateUserPolicy> & __cdecl IGSZInventoryInterface::GetSlottedItemChangedDelegate(void)" ([email protected]@@[email protected][email protected]@[email protected]@@[email protected]@@@XZ)

答:检查接口类所有函数是否为纯虚函数。

相关标签: UE ue4