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

Luca Pallozzi Lavorante lucapl at rc.unesp.br
Thu Jul 21 07:56:56 EDT 2005

Hi Kent, thanks for the advice.
I will try again with the modification you suggested.
By the way, I am using gcc 3.4.2 in the Fedora Core 3 environment.



Kent Eschenberg wrote:

> --On July 20, 2005 07:53:06 PM <lucapl at rc.unesp.br> wrote:
>> I am trying to compile VTK 4.2 on Fedora and got the error in the 
>> subject
>> (file ./IO/vtkBMPReader.cxx). Does anybody  know how to solve the 
>> problem?
> You didn't mention the compiler you are using; I assume its gcc.
> Edit places where "seekg" is called with its first argument equal to 
> the sum of two or more terms (e.g., a+b or a+b+c). The fix is to just 
> reverse the order of the terms (e.g., b+a or b+c+a). Changes will be 
> needed in two places in each of two files, vtkBMPReader.cxx and 
> vtkImageReader.cxx, found in VTK directory IO.
> The bug in the compiler was fixed but I don't know if its yet been 
> released.
> Kent Eschenberg
> Pittsburgh Supercomputing Center

More information about the vtkusers mailing list