Hi all,
I encounter a linker error that happens only in Debug build and not in Release
build:
3>testMultiView.obj : error LNK2019: unresolved external symbol "class
Imf_2_1::ChannelList __cdecl Imf_2_1::channelsInView(class
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
> const &,class Imf_2_1::ChannelList const &,class std::vector<class
std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>
>,class std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > > const &)"
(?channelsInView@Imf_2_1@@YA?AVChannelList@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV21@ABV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@4@@Z)
referenced in function "void __cdecl `anonymous
namespace'::testMultiViewFunctions(void)"
(?testMultiViewFunctions@?A0xe9e1600f@@YAXXZ)
3>c:\libs\OpenEXR2\openexr-2.1.0\bin\IlmImfTest\Debug\IlmImfTest.exe : fatal
error LNK1120: 1 unresolved externals
The interesting thing is that the linker complains not, e.g., over
channelInAllViews which is in the same source file. Also, the function
arguments requested in the linker error seem to match what is given in the cpp
file (although the name decoration and typedefing make it hard to read).
I had built IlmBase also in Debug mode and created new VS project files with
CMake for openexr (pointing to those debug lib files).
Does anyone have an idea why this went wrong? Missing export somewhere in
Debug? Is it a problem in the CMake scripts for VS2010?
Best regards,
weaker
_______________________________________________
Openexr-devel mailing list
Openexr-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/openexr-devel