[vtk-developers] Errors when compiling VTK v6.0.0 in C++11 mode

David Gobbi david.gobbi at gmail.com
Sat Jul 13 13:21:08 EDT 2013


Hi Kevin,

Thanks for the report.  I believe that this can be fixed.  The patch
that Kyle provided will not work (we already tried that in earlier
rounds of testing) so now I am investigating in more depth. I've
discovered that our cmake check for VTK_HAS_STD_ISINF doesn't work
because cmake's check_symbol_exists() function uses the C compiler,
rather than the C++ compiler, for its try_compile and therefore
doesn't work with namespaced functions.  I hope to have a patch up on
gerrit soon.

 - David

On Sat, Jul 13, 2013 at 4:51 AM, Sean McBride <sean at rogue-research.com> wrote:
> On Wed, 10 Jul 2013 16:31:47 +0200, Kevin Funk said:
>
>>/home/krf/devel/src/VTK-master/Common/Core/vtkMath.h: In static member
>>function 'static int vtkMath::IsInf(double)':
>>/home/krf/devel/src/VTK-master/Common/Core/vtkMath.h:1249:18: error: call of
>>overloaded 'isinf(double&)' is ambiguous
>>
>> *SNIP*
>>
>>Since there are C++11 checks all over the code base I'd assume one can
>>compile
>>VTK in C++11 mode.
>
> With which compiler, standard library, and OS do you see this?
>
> My Rogue7 dashboard builds as C++11 nightly with clang on OS X, and this doesn't happen there.
>
> The patch looks reasonable, but this code is fragile, it took David Gobbi and I a while to get it working with all (mmmm, most!) compiler/library/OS/language combinations.
>
> I'm away on vacation, and have no VTK or compiler to look at this until next week, but maybe David can...
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>



More information about the vtk-developers mailing list