[vtkusers] Error compiling VTK5 with mingw 3.4.4

Nicolaus Andratschke koegli at yahoo.com
Wed Feb 15 13:32:56 EST 2006


I'm experiencing problems when compiling VTK5 (tar.gz)
with mingw 3.4.4 on WinXP. Before I never ran into
trouble, but now it gives the following error message
when turning shared libs on:

Linking CXX shared library ../../bin/libvtksys.dll

c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../libstdc++.a(misc-inst.o):misc-inst.cc:(.text$_ZN9__gnu_cxx18stdio_sync_filebufIcSt11char_traitsIcEE7seekoffExSt12_Ios_SeekdirSt13_Ios_Openmode[__gnu_cxx::stdio_sync_filebuf<char,
std::char_traits<char> >::seekoff(long long,
std::_Ios_Seekdir, std::_Ios_Openmode)]+0x54):
undefined reference to `fseeko64'
collect2: ld returned 1 exit status
make[2]: *** [bin/libvtksys.dll] Error 1
make[1]: ***
[Utilities/kwsys/CMakeFiles/vtksys.dir/all] Error 2
make: *** [all] Error 2


Compiling with shared libs off gives the following
error:

C:/Programming/VTK-5.0/Common/vtkOStreamWrapper.cxx:
In member function `vtkOStr                           
                 eamWrapper&
vtkOStreamWrapper::operator<<(long long int)':
C:/Programming/VTK-5.0/Common/vtkOStreamWrapper.cxx:75:
error: ambiguous overloa                              
              d for 'operator<<' in
'((vtkOStreamWrapper*)this)->vtkOStreamWrapper::ostr
<< a'
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:63: note: candidates are:
std::basic_ostream<_CharT, _Traits>& std::ba          
                                  sic_ostream<_CharT,
_Traits>::operator<<(std::basic_ostream<_CharT,
_Traits>&(*)                                          
  (std::basic_ostream<_CharT, _Traits>&)) [with _CharT
= char, _Traits = std::char                           
                 _traits<char>] <near match>
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:74: note:                
std::basic_ostream<_CharT, _Traits>& std::ba          
                                  sic_ostream<_CharT,
_Traits>::operator<<(std::basic_ios<_CharT,
_Traits>&(*)(std                                      
      ::basic_ios<_CharT, _Traits>&)) [with _CharT =
char, _Traits = std::char_traits<                     
                       char>] <near match>
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:86: note:                
std::basic_ostream<_CharT, _Traits>& std::ba          
                                  sic_ostream<_CharT,
_Traits>::operator<<(std::ios_base&(*)(std::ios_base&))
[wit                                             h
_CharT = char, _Traits = std::char_traits<char>] <near
match>
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:121: note:                
std::basic_ostream<_CharT, _Traits>& std::b           
                                 asic_ostream<_CharT,
_Traits>::operator<<(long int) [with _CharT = char,
_Traits                                              =
std::char_traits<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:155: note:                
std::basic_ostream<_CharT, _Traits>& std::b           
                                 asic_ostream<_CharT,
_Traits>::operator<<(long unsigned int) [with _CharT =
char                                             ,
_Traits = std::char_traits<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:98: note:                
std::basic_ostream<_CharT, _Traits>& std::ba          
                                  sic_ostream<_CharT,
_Traits>::operator<<(bool) [with _CharT = char,
_Traits = st                                          
  d::char_traits<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/ostream
                                            :178:
note:                 std::basic_ostream<_CharT,
_Traits>& std::basic_ostr                             
               eam<_CharT, _Traits>::operator<<(short
int) [with _CharT = char, _Traits = std::             
                               char_traits<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/ostream
                                            :189:
note:                 std::basic_ostream<_CharT,
_Traits>& std::basic_ostr                             
               eam<_CharT, _Traits>::operator<<(short
unsigned int) [with _CharT = char, _Trait             
                               s =
std::char_traits<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/ostream
                                            :193:
note:                 std::basic_ostream<_CharT,
_Traits>& std::basic_ostr                             
               eam<_CharT, _Traits>::operator<<(int)
[with _CharT = char, _Traits = std::char_t            
                                raits<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/ostream
                                            :204:
note:                 std::basic_ostream<_CharT,
_Traits>& std::basic_ostr                             
               eam<_CharT,
_Traits>::operator<<(unsigned int) [with _CharT =
char, _Traits = st                                    
        d::char_traits<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:179: note:                
std::basic_ostream<_CharT, _Traits>& std::b           
                                 asic_ostream<_CharT,
_Traits>::operator<<(long long int) [with _CharT =
char, _T                                            
raits = std::char_traits<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:214: note:                
std::basic_ostream<_CharT, _Traits>& std::b           
                                 asic_ostream<_CharT,
_Traits>::operator<<(long long unsigned int) [with
_CharT =                                             
char, _Traits = std::char_traits<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:238: note:                
std::basic_ostream<_CharT, _Traits>& std::b           
                                 asic_ostream<_CharT,
_Traits>::operator<<(double) [with _CharT = char,
_Traits =                                             
std::char_traits<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/ostream
                                            :219:
note:                 std::basic_ostream<_CharT,
_Traits>& std::basic_ostr                             
               eam<_CharT, _Traits>::operator<<(float)
[with _CharT = char, _Traits = std::char              
                              _traits<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:261: note:                
std::basic_ostream<_CharT, _Traits>& std::b           
                                 asic_ostream<_CharT,
_Traits>::operator<<(long double) [with _CharT = char,
_Tra                                             its =
std::char_traits<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:284: note:                
std::basic_ostream<_CharT, _Traits>& std::b           
                                 asic_ostream<_CharT,
_Traits>::operator<<(const void*) [with _CharT = char,
_Tra                                             its =
std::char_traits<char>] <near match>
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:307: note:                
std::basic_ostream<_CharT, _Traits>& std::b           
                                 asic_ostream<_CharT,
_Traits>::operator<<(std::basic_streambuf<_CharT,
_Traits>*                                            
) [with _CharT = char, _Traits =
std::char_traits<char>] <near match>
C:/Programming/VTK-5.0/Common/vtkIOStream.h:107: note:
                std::ostr                             
               eam& operator<<(std::ostream&,
vtkIOStreamSLL)
C:/Programming/VTK-5.0/Common/vtkIOStream.h:115: note:
                std::ostr                             
               eam& operator<<(std::ostream&,
vtkIOStreamULL)
C:/Programming/VTK-5.0/Common/vtkIndent.h:44: note:   
             std::ostream                             
               & operator<<(std::ostream&, const
vtkIndent&)
C:/Programming/VTK-5.0/Common/vtkLargeInteger.h:94:
note:                 std::o                          
                  stream& operator<<(std::ostream&,
const vtkLargeInteger&)
C:/Programming/VTK-5.0/Common/vtkSmartPointerBase.h:120:
note:                 s                               
             td::ostream& operator<<(std::ostream&,
const vtkSmartPointerBase&) <near match>
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/ostream
                                            :504:
note:                 std::basic_ostream<char,
_Traits>& std::operator<<(s                           
                 td::basic_ostream<char, _Traits>&,
const unsigned char*) [with _Traits = std::ch         
                                   ar_traits<char>]
<near match>
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/ostream
                                            :499:
note:                 std::basic_ostream<char,
_Traits>& std::operator<<(s                           
                 td::basic_ostream<char, _Traits>&,
const signed char*) [with _Traits = std::char         
                                   _traits<char>]
<near match>
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:612: note:                
std::basic_ostream<char, _Traits>& std::ope           
                                
rator<<(std::basic_ostream<char, _Traits>&, const
char*) [with _Traits = std::ch                        
                    ar_traits<char>] <near match>
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:567: note:                
std::basic_ostream<_CharT, _Traits>& std::o           
                                
perator<<(std::basic_ostream<_CharT, _Traits>&, const
char*) [with _CharT = char                            
                , _Traits = std::char_traits<char>]
<near match>
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/ostream
                                            :465:
note:                 std::basic_ostream<char,
_Traits>& std::operator<<(s                           
                 td::basic_ostream<char, _Traits>&,
unsigned char) [with _Traits = std::char_trai         
                                   ts<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/ostream
                                            :460:
note:                 std::basic_ostream<char,
_Traits>& std::operator<<(s                           
                 td::basic_ostream<char, _Traits>&,
signed char) [with _Traits = std::char_traits         
                                   <char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/bits/os
                                           
tream.tcc:505: note:                
std::basic_ostream<char, _Traits>& std::ope           
                                
rator<<(std::basic_ostream<char, _Traits>&, char)
[with _Traits = std::char_trai                        
                    ts<char>]
c:/msys/mingw/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c++/3.4.4/ostream
                                            :449:
note:                 std::basic_ostream<_CharT,
_Traits>& std::operator<<                             
               (std::basic_ostream<_CharT, _Traits>&,
char) [with _CharT = char, _Traits = std:             
                               :char_traits<char>]
make[2]: ***
[Common/CMakeFiles/vtkCommon.dir/vtkOStreamWrapper.obj]
Error 1
make[1]: *** [Common/CMakeFiles/vtkCommon.dir/all]
Error 2
make: *** [all] Error 2

Any ideas what's wrong????

NIC



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the vtkusers mailing list