#552·Hazel

Hazel 在 Windows arm64 上使用 MSVC 编译时出现"错误 LNK2019: 在函数"private: void __cdecl Hazel::OpenGLShader::CompileOrGetOpenGLBinaries(void)"中引用的外部符号 shaderc_compiler_initialize 尚未解析"的问题。

作者: YangYang129创建于 2022年6月2日更新于 2024年12月21日

9>Hazel.lib(OpenGLShader.obj) : error LNK2019: unresolved external symbol shaderc_compiler_initialize referenced in function "private: void __cdecl Hazel::OpenGLShader::CompileOrGetOpenGLBinaries(void)" (?CompileOrGetOpenGLBinaries@OpenGLShader@Hazel@@AEAAXXZ) [F:\gitP\TheCherno\Hazel\Sandbox\Sandbox.vcxproj] 9>Hazel.lib(OpenGLShader.obj) : error LNK2019: unresolved external symbol shaderc_compiler_release referenced in function "public: __cdecl shaderc::Compiler::~Compiler(void)" (??1Compiler@shaderc@@QEAA@XZ) [F:\gitP\TheCherno\Hazel\Sandbox\Sandbox.vcxproj] 9>Hazel.lib(OpenGLShader.obj) : error LNK2019: unresolved external symbol shaderc_compile_options_initialize referenced in function "private: void __cdecl Hazel::OpenGLShader::CompileOrGetOpenGLBinaries(void)" (?CompileOrGetOpenGLBinaries@OpenGLShader@Hazel@@AEAAXXZ) [F:\gitP\TheCherno\Hazel\Sandbox\Sandbox.vcxproj] 9>Hazel.lib(OpenGLShader.obj) : error LNK2019: unresolved external symbol shaderc_compile_options_release referenced in function "public: __cdecl shaderc::CompileOptions::~CompileOptions(void)" (??1CompileOptions@shaderc@@QEAA@XZ) [F:\gitP\TheCherno\Hazel\Sandbox\Sandbox.vcxproj] 9>Hazel.lib(OpenGLShader.obj) : error LNK2019: unresolved external symbol shaderc_compile_options_set_optimization_level referenced in function "private: void __cdecl Hazel::OpenGLShader::CompileOrGetVulkanBinaries(class std::unordered_map<unsigned int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::hash<unsigned int>,struct std::equal_to<unsigned int>,class std::allocator<struct std::pair<unsigned int const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > > const &)" …

内容来源: TheCherno/Hazel