Hi,<div><br></div><div>I use the following line to configure, which can enable the c++11 in the project building. However, I don't think it's an elegant way to do the trick.</div><div><font face="courier new, monospace">$ CXX="clang++ -std=c++11" ../configure</font></div>

<div><br></div><div>I don't know why "-enable-cxx11" doesn't work as expected when I configure the project.</div><div><br></div><div>Regards.</div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Mon, Nov 26, 2012 at 7:34 PM, Mingliang LIU <span dir="ltr"><<a href="mailto:liuml07@gmail.com" target="_blank">liuml07@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<div><br></div><div>I'm using the latest LLVM (<font face="courier new, monospace">r168491</font>) built by GCC 4.7.2 (Gentoo masked version). The <font face="courier new, monospace">clang++</font> runs as expected when I compile a hello program with c++11 enabled.</div>


<div><br></div><div>I created a project (copied from<font face="courier new, monospace"> sample/</font>) where there are some C++ source files with c++11 features.  I configured my project using the following command:</div>


<div><font face="courier new, monospace">$ CXXFLAGS="-std=c++11" ../configure --enable-cxx11</font></div><div>However, I found that the <font face="courier new, monospace">clang++</font> did not build my project with the "<font face="courier new, monospace">-std=c++</font>" option[1].<br>


</div><div><br></div><div>Could anyone kindly show me how to enable C++11 in a LLVM project, please?</div><div><br></div><div>Thank you.</div><div>Miangliang.</div><div><br></div><div>[1] I get the detailed options building my project using <font face="courier new, monospace">'make VERBOSE=1'</font></div>

<span class="HOEnZb"><font color="#888888">
<div>-- <br><font face="arial, helvetica, sans-serif" style color="#666666">Mingliang LIU (刘明亮 in Chinese)<br><br>PACMAN Group,  Dept. of Computer Science & Technology<br>Tsinghua University, Beijing 100084, China<br>


Email: <a href="mailto:liuml07@mails.tsinghua.edu.cn" target="_blank">liuml07@mails.tsinghua.edu.cn</a></font><div><font face="arial, helvetica, sans-serif" style color="#666666">Homepage: <a href="http://pacman.cs.tsinghua.edu.cn/~liuml07" style="line-height:19px;text-align:center" target="_blank">http://pacman.cs.tsinghua.edu.cn/~liuml07/</a></font></div>


<br>
</div>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="arial, helvetica, sans-serif" style="background-color:rgb(255,255,255)" color="#666666">Mingliang LIU (刘明亮 in Chinese)<br><br>PACMAN Group,  Dept. of Computer Science & Technology<br>

Tsinghua University, Beijing 100084, China<br>Email: <a href="mailto:liuml07@mails.tsinghua.edu.cn" target="_blank">liuml07@mails.tsinghua.edu.cn</a></font><div><font face="arial, helvetica, sans-serif" style="background-color:rgb(255,255,255)" color="#666666">Homepage: <a href="http://pacman.cs.tsinghua.edu.cn/~liuml07" style="line-height:19px;text-align:center" target="_blank">http://pacman.cs.tsinghua.edu.cn/~liuml07/</a></font></div>

<br>
</div>