[vtkusers] Compilation Errors error: ISO C++ says that these are ambiguous, even though the worst convesion for the first is better than the worst conversion for the second

Rakesh K Sinha rakesh_usenet at yahoo.com
Thu Jan 13 08:30:26 EST 2005


Hi, 
  I had downloaded recently the latest release of VTK from the web site -

http://prdownloads.sourceforge.net/vtk/VTK-4.2-LatestRelease.tar.gz?download .

I tried to compile the same on my MandrakeLinux system installation 10.1  . 

I am running GNU gcc/g++ 3.41 . 

When I try to build the kit as per the instructions, I got a series of
compilation errors , as follows .

<-- Compilation Error begins -->
/home/Dad/tmp/VTK/IO: building default_target
Building dependencies. cmake.depends...
Building object file vtkBMPReader.o...
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit
h OT = double]':
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:545:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:545:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit
h OT = float]':
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:548:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:548:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit
h OT = long unsigned int]':
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:551:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:551:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit
h OT = long int]':
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:554:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:554:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit
h OT = unsigned int]':
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:557:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:557:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit
h OT = int]':
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:560:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:560:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit
h OT = short int]':
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:563:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:563:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit
h OT = short unsigned int]':
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:566:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:566:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit
h OT = unsigned char]':
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:569:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:569:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are
ambiguous, even though the worst conve
rsion for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp
os<_StateT> std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT =
mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx: In function `void
vtkBMPReaderUpdate2(vtkBMPReader*, vtkImageData*, OT*) [wit
h OT = char]':
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:572:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: error: ISO C++ says that these are
ambiguous, even though the worst conve                                   rsion
for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp                                   os<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:507: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:572:   instantiated from here
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: error: ISO C++ says that these are
ambiguous, even though the worst conve                                   rsion
for the first is better than the worst conversion for the second:
/usr/lib/gcc/i586-mandrake-linux-gnu/3.4.1/../../../../include/c++/3.4.1/bits/postypes.h:176:
note: candidate 1: std::fp                                   os<_StateT>
std::fpos<_StateT>::operator+(std::streamoff) const [with _StateT = mbstate_t]
/home/Dad/tmp/VTK/IO/vtkBMPReader.cxx:511: note: candidate 2:
operator+(std::streamoff, long int) <built-in>
make[3]: *** [vtkBMPReader.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_IO] Error 2
make: *** [default_target] Error 2
<--- Log Ends ->

Is there anything that I am missing here ? 






		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250



More information about the vtkusers mailing list