<div dir="ltr">Hi,<div><br></div><div>My C++11 code using std::unique_ptr compiles fine. Did you #include <memory>?</div><div><br></div><div>Mark</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Jul 11, 2016 at 9:13 PM Patrick E Gartung <<a href="mailto:gartung@fnal.gov">gartung@fnal.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<span>Hi,</span>
<div><span><br>
</span></div>
<div><span>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><span><br>
</span></div>
<div><span>Patrick Gartung</span></div>
<div><span><br>
</span><span><br>
</span><span><br>
</span><span><br>
</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)">
<span style="color:#000000"><br>
</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)">
<span style="color:#000000">[ 5%]
</span><span>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)">
<span>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)">
<span>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)">
<span>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)">
<span><b>/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:27:16:
</b></span><span style="color:#bc321c"><b>error:
</b></span><span><b>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)">
<span><b> 'std'</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span> 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)">
<span><b> ~~~~~^</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span><b>/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:27:45:
</b></span><span style="color:#bc321c"><b>error:
</b></span><span><b>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)">
<span><b> construction</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span> 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)">
<span><b> ~~~~~~~~~~~~~~~~~~^</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span><b>/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:27:47:
</b></span><span style="color:#bc321c"><b>error:
</b></span><span><b>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)">
<span> 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)">
<span><b> ^</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span><b>/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:29:55:
</b></span><span style="color:#bc321c"><b>error:
</b></span><span><b>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)">
<span> 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)">
<span><b> ^</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span><b>/home/gartung/toy-mt-framework/TBBProcessingDemo/TBBFrameworkCore/WaitingTask.h:30:14:
</b></span><span style="color:#bc321c"><b>error:
</b></span><span><b>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)">
<span> 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)">
<span><b> ^</b></span></p>
<p style="margin:0px;font-size:16px;line-height:normal;font-family:Menlo;background-color:rgb(254,244,156)">
<span>5 errors generated.</span></p>
<div><span><br>
</span></div>
</div>
</div>
_______________________________________________<br>
llvm-bgq-discuss mailing list<br>
<a href="mailto:llvm-bgq-discuss@lists.alcf.anl.gov" target="_blank">llvm-bgq-discuss@lists.alcf.anl.gov</a><br>
<a href="https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss" rel="noreferrer" target="_blank">https://lists.alcf.anl.gov/mailman/listinfo/llvm-bgq-discuss</a><br>
</blockquote></div>