Compiling OpenEXR on Windows - problem with ImfPartType

haggi krey <[email protected]>
Newsgroups gmane.comp.video.openexr.devel
Message-ID <[email protected]>
Hey,

it seems that the ImfPartType.h functions are not correctly exported.
I added a IMF_EXPORT and now it seems to work. But I didn't try it in a 
real application yet.

haggi

Am 24.03.2014 22:25, schrieb haggi krey:
> Hi,
>
> I managed to compile openExr on my windows machine. Now I have a a 
> problem with the methods defined in ImfPartType.h.
> None of the methods are correctly defined and as soon as I try to use 
> them I get an error:
>
> error LNK2019: unresolved external symbol "bool __cdecl 
> Imf_2_1::isTiled(class std::basic_string<char,struct 
> std::char_traits<char>,class std::allocator<char> > const &)" 
> (?isTiled@Imf_2_1@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 
> referenced in function "void __cdecl 
> generalInterfaceTiledExamples(void)" 
> (?generalInterfaceTiledExamples@@YAXXZ)
>
> My configuration:
>
> MSVC 2010 - 64bit
> Used CMake to build the solution
> Compiled and linked the solution
> All tests seem to work fine, the IlmImf examples completed correctly.
>
> For testing I included ImfPartType.h in the 
> generalInterfaceExamples.cpp file (no special reason for this special 
> source file, just for testing) added the line:
>
> isTiled(typestring);
>
> And I get the error above.
>
> I'd appreciate any hints where I could have missed something.
>
> Thanks.
>
> haggi
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.