openexr-devel
[Top][All Lists]
Advanced

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

[Openexr-devel] Linker errors


From: Bo Huang
Subject: [Openexr-devel] Linker errors
Date: Wed, 27 Apr 2011 14:42:36 -0400

Hi. 

I am trying to compile OpenExr on Windows 7 64bit (my only system) with VS2008, 
which converts the vs8 solution for OpenExr and ilmbase.
I have them at
L:\code\ilmbase-1.0.2
L:\code\openexr-1.7.0
L:\code\zlib-1.2.5


Then I can build ilmbase-1.0.2 out of the box, which creates
L:\Deploy\bin
L:\Deploy\include
L:\Deploy\lib
and I place required .libs including zlib for OpenEXR build.

But when I build OpenEXR, I encounter:
Error   35      fatal error C1083: Cannot open include file: 'ImfRgbaFile.h': 
No such file or directory l:\code\openexr-1.7.0\IlmImfExamples\drawImage.h      
  36
Error   31      fatal error C1083: Cannot open include file: 'ImfArray.h': No 
such file or directory    l:\code\openexr-1.7.0\exrenvmap\EnvmapImage.h   44
Error   34      fatal error C1083: Cannot open include file: 'ImfOutputFile.h': 
No such file or directory       
l:\code\openexr-1.7.0\IlmImfExamples\generalInterfaceExamples.cpp       46
Error   33      fatal error C1083: Cannot open include file: 
'ImfTiledOutputFile.h': No such file or directory  
l:\code\openexr-1.7.0\IlmImfExamples\generalInterfaceTiledExamples.cpp  46

These I can fix by adding the include directories they are in.

But then building again I get many linker errors, which seem to be some 
template code not defined. So best I ask here as I'm likely doing something 
wrong setting up.

Error   1       error LNK2019: unresolved external symbol "public: static char 
const * __cdecl Imf::TypedAttribute<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> > > > 
>::staticTypeName(void)" 
(address@hidden@address@hidden@address@hidden@std@@address@hidden@2@@std@@address@hidden@address@hidden@std@@address@hidden@2@@std@@@2@@std@@@Imf@@SAPBDXZ)
 referenced in function "public: static void __cdecl Imf::TypedAttribute<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> > > > 
>::registerAttributeType(void)" 
(address@hidden@address@hidden@address@hidden@std@@address@hidden@2@@std@@address@hidden@address@hidden@std@@address@hidden@2@@std@@@2@@std@@@Imf@@SAXXZ)
 ImfHeader.obj
Error   3       error LNK2001: unresolved external symbol "public: virtual void 
__thiscall Imf::TypedAttribute<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> > > > >::writeValueTo(class 
Imf::OStream &,int)const " 
(address@hidden@address@hidden@address@hidden@std@@address@hidden@2@@std@@address@hidden@address@hidden@std@@address@hidden@2@@std@@@2@@std@@@Imf@@address@hidden@address@hidden)
    ImfHeader.obj
Error   5       error LNK2001: unresolved external symbol "public: virtual void 
__thiscall Imf::TypedAttribute<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> > > > >::readValueFrom(class 
Imf::IStream &,int,int)" 
(address@hidden@address@hidden@address@hidden@std@@address@hidden@2@@std@@address@hidden@address@hidden@std@@address@hidden@2@@std@@@2@@std@@@Imf@@address@hidden@address@hidden)
     ImfHeader.obj
Error   7       error LNK2019: unresolved external symbol address@hidden 
referenced in function "private: int __thiscall 
Imf::Pxr24Compressor::compress(char const *,int,class Imath::Box<class 
Imath::Vec2<int> >,char const * &)" 
(address@hidden@Imf@@address@hidden@address@hidden@@@Imath@@address@hidden) 
ImfPxr24Compressor.obj
Error   9       error LNK2019: unresolved external symbol address@hidden 
referenced in function "private: int __thiscall 
Imf::Pxr24Compressor::uncompress(char const *,int,class Imath::Box<class 
Imath::Vec2<int> >,char const * &)" 
(address@hidden@Imf@@address@hidden@address@hidden@@@Imath@@address@hidden)     
  ImfPxr24Compressor.obj
Error   2       error LNK2001: unresolved external symbol "public: static char 
const * __cdecl Imf::TypedAttribute<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> > > > 
>::staticTypeName(void)" 
(address@hidden@address@hidden@address@hidden@std@@address@hidden@2@@std@@address@hidden@address@hidden@std@@address@hidden@2@@std@@@2@@std@@@Imf@@SAPBDXZ)
      ImfStandardAttributes.obj
Error   4       error LNK2001: unresolved external symbol "public: virtual void 
__thiscall Imf::TypedAttribute<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> > > > >::writeValueTo(class 
Imf::OStream &,int)const " 
(address@hidden@address@hidden@address@hidden@std@@address@hidden@2@@std@@address@hidden@address@hidden@std@@address@hidden@2@@std@@@2@@std@@@Imf@@address@hidden@address@hidden)
    ImfStandardAttributes.obj
Error   6       error LNK2001: unresolved external symbol "public: virtual void 
__thiscall Imf::TypedAttribute<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> > > > >::readValueFrom(class 
Imf::IStream &,int,int)" 
(address@hidden@address@hidden@address@hidden@std@@address@hidden@2@@std@@address@hidden@address@hidden@std@@address@hidden@2@@std@@@2@@std@@@Imf@@address@hidden@address@hidden)
     ImfStandardAttributes.obj
Error   8       error LNK2001: unresolved external symbol address@hidden        
ImfZipCompressor.obj
Error   10      error LNK2001: unresolved external symbol address@hidden        
ImfZipCompressor.obj

The information contained in this e-mail and any accompanying attachments may 
contain information that is privileged, confidential or otherwise protected 
from disclosure. If you are not the intended recipient of this message, or if 
this message has been addressed to you in error, please immediately alert the 
sender by reply e-mail and then delete this message and any attachments. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email or any attachments.



reply via email to

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