<div dir="ltr"><div><div><div>Dear Aida,<br><br></div>Please make sure you are building your project with C++11 activated.<br></div>One way to do that would be to add the following in your CMakeLists.txt<br><pre class="gmail-lang-cpp gmail-prettyprint gmail-prettyprinted"><code><span class="gmail-pln">target_compile_features</span><span class="gmail-pun">(</span><span class="gmail-pln">target PUBLIC cxx_std_11</span><span class="gmail-pun">)</span></code></pre><br></div>Best regards,<br><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Tue, May 29, 2018 at 1:52 PM, 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>