<div dir="ltr">Override and nullptr are features of c++ that were introduced in c++11 but it looks like whatever you are building didn't ask to use c++11 features. What compiler and version are you using? Try adding the following to your CMakeLists.txt file for your project:<div><br></div><div><font face="monospace, monospace">set(CMAKE_CXX_STANDARD 11)</font><br></div><div><br></div><div>You could also, use 14 instead of 11. I'm not sure if VTK 8.1 using c++14 features or not. Your compilation of VTK 8.1 is most likely fine. It should probably be forcing CMAKE_CXX_STANDARD to be 11 though.</div><div><br></div><div>--Mike Chinander</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 29, 2018 at 6:52 AM, Aida Ninyerola <span dir="ltr"><<a href="mailto:aida.ninyerola@gmail.com" target="_blank">aida.ninyerola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I've built VTK 8.1 in Ubuntu 16.04 without problems. Now that I'm trying to build my project I've found a problem that I think could be related with VTK compilation.</div><div><br></div><div>One it's a warning: /usr/local/include/vtk-8.1/<wbr>vtkOStrStreamWrapper.h:45:25: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11<br></div><div><br></div><div>And the error appears as /usr/local/include/vtk-8.1/<wbr>vtkWeakPointerBase.h:39:33: error: ‘nullptr’ was not declared in this scope</div><div><br></div><div>I've tried to find a solution and all I found was related to c++11 but I'm afraid that my low level of C++ expertise doesn't allow me to correctly edit ccmake options to built VTK 8.1 with c++11 support (if this is the real problem).</div><div><br></div><div>Is this error a result of an incorrect VTK compilation? How can I avoid this error?</div><div><br></div><div>Many thanks,</div><div>Aida<br></div></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>