<p>I have built and installed mlpack follow the tutorial:<br>
<a href="http://mlpack.org/docs/mlpack-2.0.3/doxygen.php?doc=build.html#build">http://mlpack.org/docs/mlpack-2.0.3/doxygen.php?doc=build.html#build</a><br>
Do you mean that?</p>

<p>When I build the tests without modification, error message shows:</p>

<p>Scanning dependencies of target mlpack_test<br>
[  1%] Building CXX object CMakeFiles/mlpack_test.dir/mlpack_test.o<br>
[  2%] Building CXX object CMakeFiles/mlpack_test.dir/adaboost_test.o<br>
In file included from /usr/include/c++/5/cstdint:35:0,<br>
                 from /usr/local/include/mlpack/prereqs.hpp:30,<br>
                 from /usr/local/include/mlpack/core.hpp:207,<br>
                 from /home/cwind/Desktop/Downloads/tests/adaboost_test.cpp:14:<br>
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.<br>
 #error This file requires compiler and library support \<br>
  ^<br>
In file included from /usr/local/include/mlpack/prereqs.hpp:65:0,<br>
                 from /usr/local/include/mlpack/core.hpp:207,<br>
                 from /home/cwind/Desktop/Downloads/tests/adaboost_test.cpp:14:</p>

<p>After I add this to CMakeLists:</p>

<p>include(CheckCXXCompilerFlag)<br>
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)<br>
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)<br>
if(COMPILER_SUPPORTS_CXX11)<br>
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")<br>
elseif(COMPILER_SUPPORTS_CXX0X)<br>
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")<br>
else()<br>
        message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")<br>
endif()</p>

<p>(I copied it from stackoverflow)</p>

<p>The error I've posted occurred after ran to 100%</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/issues/779#issuecomment-244744564">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFLm38Zsmy-l6tuhC7ChMOCtMj_GQks5qnBYrgaJpZM4J0ycG">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFNPf3MfKU25Jh1giw9zFCx5Ovitaks5qnBYrgaJpZM4J0ycG.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/779#issuecomment-244744564"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/mlpack/mlpack","title":"mlpack/mlpack","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/mlpack/mlpack"}},"updates":{"snippets":[{"icon":"PERSON","message":"@kc420 in #779: I have built and installed mlpack follow the tutorial:\r\nhttp://mlpack.org/docs/mlpack-2.0.3/doxygen.php?doc=build.html#build\r\nDo you mean that?\r\n\r\n\r\n\r\nWhen I build the tests without modification, error message shows:\r\n\r\n\r\nScanning dependencies of target mlpack_test\r\n[  1%] Building CXX object CMakeFiles/mlpack_test.dir/mlpack_test.o\r\n[  2%] Building CXX object CMakeFiles/mlpack_test.dir/adaboost_test.o\r\nIn file included from /usr/include/c++/5/cstdint:35:0,\r\n                 from /usr/local/include/mlpack/prereqs.hpp:30,\r\n                 from /usr/local/include/mlpack/core.hpp:207,\r\n                 from /home/cwind/Desktop/Downloads/tests/adaboost_test.cpp:14:\r\n/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.\r\n #error This file requires compiler and library support \\\r\n  ^\r\nIn file included from /usr/local/include/mlpack/prereqs.hpp:65:0,\r\n                 from /usr/local/include/mlpack/core.hpp:207,\r\n                 from /home/cwind/Desktop/Downloads/tests/adaboost_test.cpp:14:\r\n\r\n\r\n\r\nAfter I add this to CMakeLists:\r\n\r\ninclude(CheckCXXCompilerFlag)\r\nCHECK_CXX_COMPILER_FLAG(\"-std=c++11\" COMPILER_SUPPORTS_CXX11)\r\nCHECK_CXX_COMPILER_FLAG(\"-std=c++0x\" COMPILER_SUPPORTS_CXX0X)\r\nif(COMPILER_SUPPORTS_CXX11)\r\n    set(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} -std=c++11\")\r\nelseif(COMPILER_SUPPORTS_CXX0X)\r\n    set(CMAKE_CXX_FLAGS \"${CMAKE_CXX_FLAGS} -std=c++0x\")\r\nelse()\r\n        message(STATUS \"The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.\")\r\nendif()\r\n\r\n(I copied it from stackoverflow)\r\n\r\nThe error I've posted occurred after ran to 100%"}],"action":{"name":"View Issue","url":"https://github.com/mlpack/mlpack/issues/779#issuecomment-244744564"}}}</script>