openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openexr-devel] Linker error in IlmImfTest, VS2010 Win32, only Debug bui


From: weaker
Subject: [Openexr-devel] Linker error in IlmImfTest, VS2010 Win32, only Debug build
Date: Thu, 13 Mar 2014 12:39:39 +0100

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 &)" (address@hidden@@address@hidden@address@hidden@address@hidden@@address@hidden@2@@std@@address@hidden@address@hidden@address@hidden@@address@hidden@2@@std@@address@hidden@address@hidden@std@@address@hidden@2@@std@@@2@@4@@Z) referenced in function "void __cdecl `anonymous namespace'::testMultiViewFunctions(void)" (address@hidden@@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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]