Hi Witold.<br><br>Based on this feature-support matrix: <a href="http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport">http://wiki.apache.org/stdcxx/C%2B%2B0xCompilerSupport</a> , it seems gcc 4.6 doesn't support override (even with the C++0x flag). I just verified this without CMake.<br>
<br>Petr<br><br><div class="gmail_quote">On Thu, Jan 17, 2013 at 10:30 AM, Witold E Wolski <span dir="ltr"><<a href="mailto:wewolski@gmail.com" target="_blank">wewolski@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span style>I would like to use the override keyword<br>I added to my root CMakeLists.txt file <br>SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x") (I am using gcc 4.6)<br>
<br>However I am still getting an error i.e:<br>
</span><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style>error: ‘override’ does not name a type</span></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px">
<span style>for the following declaration</span></p><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style>void getRT(std::vector<double> & rt) const override;<br>
</span></p><span style><br><span></span><br><br>regards<span class="HOEnZb"><font color="#888888"><br clear="all"><br>-- <br>Witold Eryk Wolski<br><br>Triemlistrasse 155<br>8047 Zuerich
</font></span></span>
<br>--<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 CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>