<div dir="ltr"><div><div><div>what's the gcc/g++ version you are using?<br><br></div>try<br>gcc -v<br>and <br>g++ -v<br><br></div>if they are 4.4.7, you may need a newer compiler.<br><br>If they are higher like 4.7.*, or 4.8.*<br>then it may be the problem that the compiler cmake is pointing to: the /usr/bin/cc and /usr/bin/c++ are older (4.4.7) although you do have newer compiler on the system. This happens often when you are on a server/workstation where you use "module load gcc" to load higher version of gcc/g++. However, the /usr/bin/cc and /usr/bin/c++ are still of lower version, which come with the system.<br><br></div>HTH<br><br>Best,<br>yi<br><div><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 9, 2014 at 8:58 PM, 李菲菲 <span dir="ltr"><<a href="mailto:llz.leephi@163.com" target="_blank">llz.leephi@163.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi everyone:</div><div>    I've made a dir VTK-build in the same dir of VTK-6.1.0, and type the following orders:  </div><div> </div><div>      ccmkae ../VTK-6.1.0</div><div>      make </div><div>      make intall </div><div> </div><div>   However, when execute the "make", I met the following errors:</div><div>      1 [  0%] Built target VTKData<br>      2 [  0%] Building CXX object Utilities/KWSys/vtksys/CMakeFiles/vtksys.dir/Directory.cxx.o<br>      3 In file included from /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_pair.h:60,<br>      4                  from /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:66,<br>      5                  from /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/char_traits.h:41,<br>      6                  from /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/string:42,<br>      7                  from /vol-th/home/liff/local/VTK-build/Utilities/KWSys/vtksys/stl/string:36,<br>      8                  from /vol-th/home/liff/local/VTK-build/Utilities/KWSys/vtksys/Encoding.hxx:16,<br>      9                  from /vol-th/home/liff/local/VTK-6.1.0/Utilities/KWSys/vtksys/Directory.cxx:17:<br>     10 /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:88: error: ????ize_t????has not been declared<br>     11 /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h: In function ????oid std::swap(_Tp (&)[_Nm], _Tp (&)[_Nm])????<br>     12 /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:92: error: ????ize_t????was not declared in this scope<br>     13 /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:92: error: expected ????????before ????_n??~Y<br>     14 /usr/lib/gcc/x86_64-kylin-linux/4.4.7/../../../../include/c++/4.4.7/bits/move.h:92: error: ????_n????was not declared in this scope</div><div> </div><div>   Do you know how to solve the problem? I've been confursed for several day, and thank you very much for helping.</div><div> </div><div>From Floria @ NSCC-TJ</div><div> </div><div> </div><div><br> </div></div><br><br><span title="neteasefooter"><span></span></span><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div></div>