1>Module.Core.15of16.cpp.obj : error LNK2001: 无法解析的外部符号 "public: static class TMap<class…
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
1>Module.Core.15_of_16.cpp.obj : error LNK2001: 无法解析的外部符号 "public: static class TMap<class FString,int,class FDefaultSetAllocator,struct TDefaultMapHashableKeyFuncs<class FString,int,0> > IMappedFileRegion::FileNameSizeMap" (?FileNameSizeMap@IMappedFileRegion@@2V?TDefaultMapHashableKeyFuncs@VFString@@H$0A@@@@@A) 1>E:\aki\Source\Engine\UnrealEngine-4.26.2\Engine\Binaries\Win64\UE4Editor-Core.dll : fatal error LNK1120: 1 个无法解析的外部命令 1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(45,5): error MSB3073: 命令“....\Build\BatchFiles\Build.bat -Target="UE4Editor Win64 Development" -Target="ShaderCompileWorker Win64 Development -Quiet" -WaitMutex -FromMsBuild”已退出,代码为 6。
- Assistant
This error message indicates that there is a linker error in the code. It is unable to resolve an external symbol related to the
IMappedFileRegion::FileNameSizeMapvariable.The
LNK2001error suggests that the linker cannot find a definition for theFileNameSizeMapvariable in the object fileModule.Core.15_of_16.cpp.obj. This variable is declared as a static member of the classIMappedFileRegion.The
LNK1120error is a fatal error that occurs when the linker is unable to resolve all external symbols and there are unresolved external commands.To resolve this issue, you need to ensure that the
FileNameSizeMapvariable is defined and accessible from the object file where it is being used. Check if there is a missing definition or if there are any issues with the visibility of the variable.Additionally, make sure that all necessary dependencies and libraries are properly linked and included in the build process.
- User
中文
- Assistant
这个错误信息表示代码中存在链接错误。无法解析与
IMappedFileRegion::FileNameSizeMap变量相关的外部符号。LNK2001错误表明链接器无法在对象文件Module.Core.15_of_16.cpp.obj中找到FileNameSizeMap变量的定义。这个变量被声明为IMappedFileRegion类的静态成员。LNK1120错误是一个致命错误,当链接器无法解析所有外部符号并且存在无法解析的外部命令时会发生。要解决此问题,您需要确保
FileNameSizeMap变量在使用它的对象文件中已经定义并可访问。检查是否存在缺少的定义或变量可见性的问题。此外,请确保所有必要的依赖项和库已正确链接和包含在构建过程中。
错误消息还暗示构建过程或执行的命令存在问题。您可能需要进一步调查或寻求帮助来解决构建脚本或命令相关的问题。
总的来说,这个错误消息指示了与
IMappedFileRegion类中的FileNameSizeMap变量相关的链接问题。修复缺少或不正确的定义,并解决构建脚本或命令相关的问题应该可以解决此错误。