提问人:0xbadf00d 提问时间:7/24/2019 更新时间:7/24/2019 访问量:116
尝试编译包括 openexr 的项目时未解析的外部符号 globalThreadCount
Unresolved external symbol globalThreadCount when trying to compile a project including openexr
问:
我使用 Visual Studio 2017 克隆了 pbrt-v3 存储库。我试图编译一个包含 Transform.h 的项目,但我从链接器收到以下错误:
LNK2019__cdecl函数“class pbrt::RGBSpectrum * __cdecl pbrt::ReadImageEXR(class std::basic_string,class std::allocator > const &,int *,int *,class pbrt::globalThreadCount@Imf@@YAHXZBounds2 *,class pbrt::Bounds2 *,class pbrt::Bounds2 *)” (?ReadImageEXR@pbrt@@YAPEAVRGBSpectrum@1@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAH1PEAV?$Bounds 2@H@1@2@Z)
我已经使用 CMake for Visual Studio 编译并安装了 openexr。我添加了
libpbrt.lib libglog_static.lib IlmThread-2_2.lib 半.lib IEX-2_2.库 IexMath-2_2.库 Imath-2_2.库
作为项目设置中的其他依赖项。我无法弄清楚在哪个库中定义了。那么,我错过了哪个图书馆?globalThreadCount
答: 暂无答案
评论
globalThreadCount