<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<span class="">Hi,</span>
<div class=""><span class=""><br class="">
</span></div>
<div class=""><span class="">I am trying to compile code on Vesta that uses c++14’s std::unique_ptr<> and I get the error below. Does bgclang++11 support this? Is the definition is a non-standard header?</span></div>
<div class=""><span class=""><br class="">
</span></div>
<div class=""><span class="">Patrick Gartung</span></div>
<div class=""><span class=""><br class="">
</span><span class=""><br class="">
</span><span class=""><br class="">
</span><span class=""><br class="">
</span>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; color: rgb(39, 180, 28); background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""><br class="">
</span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; color: rgb(39, 180, 28); background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">[ 5%]
</span><span style="font-variant-ligatures: no-common-ligatures" class="">Building CXX object TBBProcessingDemo/CMakeFiles/TBBFrameworkCore.dir/TBBFrameworkCore/WaitingTaskList.cpp.o</span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">cd /home/gartung/build/TBBProcessingDemo && /soft/compilers/bgclang/wbin/bgclang++11 -DTBBFrameworkCore_EXPORTS -I/home/gartung/toy-mt-framework/BusyWaitCalibration -I/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore
-I/soft/libraries/boost/current/cnk-bgclang++11/current/include -I/home/gartung/tbb41_20130314oss/include -fPIC -stdlib=libc++ -fopenmp -std=c++14 -fPIC -o CMakeFiles/TBBFrameworkCore.dir/TBBFrameworkCore/WaitingTaskList.cpp.o -c /home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTaskList.cpp</span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">In file included from /home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTaskList.cpp:10:</span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">In file included from /home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTaskList.h:14:</span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:27:16:
</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #bc321c" class=""><b class="">error:
</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">no member named 'unique_ptr' in namespace</b></span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> 'std'</b></span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> std::unique_ptr<std::exception_ptr> temp{new std::exception_ptr{iPtr}};</span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; color: rgb(39, 180, 28); background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> ~~~~~^</b></span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:27:45:
</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #bc321c" class=""><b class="">error:
</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">expected '(' for function-style cast or type</b></span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> construction</b></span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> std::unique_ptr<std::exception_ptr> temp{new std::exception_ptr{iPtr}};</span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; color: rgb(39, 180, 28); background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> ~~~~~~~~~~~~~~~~~~^</b></span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:27:47:
</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #bc321c" class=""><b class="">error:
</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">use of undeclared identifier 'temp'</b></span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> std::unique_ptr<std::exception_ptr> temp{new std::exception_ptr{iPtr}};</span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; color: rgb(39, 180, 28); background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> ^</b></span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:29:55:
</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #bc321c" class=""><b class="">error:
</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">use of undeclared identifier 'temp'</b></span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> if( m_ptr.compare_exchange_strong(expected, temp.get()) ) {</span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; color: rgb(39, 180, 28); background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> ^</b></span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:30:14:
</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #bc321c" class=""><b class="">error:
</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">use of undeclared identifier 'temp'</b></span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> temp.release();</span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; color: rgb(39, 180, 28); background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> ^</b></span></p>
<p style="margin: 0px; font-size: 16px; line-height: normal; font-family: Menlo; background-color: rgb(254, 244, 156);" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">5 errors generated.</span></p>
<div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
</div>
</body>
</html>