[vtkusers] Building Cocoa example on OSX
Andy Somogyi
andy.somogyi at gmail.com
Tue Mar 10 16:24:40 EDT 2015
I’m building the release branch from git, which I think is 6.2
I can verify that WITHOUT the -std=c++03 flags, clang will NOT build VTK, there is a very long stream of
error: use of undeclared identifier 'nullptr_t'; did you mean 'nullptr’?
and various other C++11 incompatibilities very early on.
I’m building on OS 10.9 with clang++ 6.0
I did try various versions of std=gnu++11 -stdlib=libc++ and -stdlib=libstdc++, none of them would build.
On Mar 10, 2015, at 4:17 PM, Sean McBride <sean at rogue-research.com> wrote:
> On Tue, 10 Mar 2015 16:15:22 -0400, Andy Somogyi said:
>
>> I’m building it now with clang.
>
> But via SimpleCocoaVTK's Xcode project or by using CMake to generate a makefile?
>
>> Note, clang (the only default compiler on OSX) defaults to C++11, and
>> VTK does not appear to build in C++11 mode, so I had to add the -std=c+
>> +03 flag, and seems to be building OK.
>
> VTK has built fine as C++11 for a long time... but 6.1 is over a year old, so maybe not that long. I do suggest you update to 6.2.
>
> 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 vtkusers
mailing list