<div dir="ltr">Which error are you seeing? -stdlib=libstdc++ should work?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 10, 2013 at 7:33 AM, kumail <span dir="ltr"><<a href="mailto:kumail89@gmail.com" target="_blank">kumail89@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">clang++ does create an .bc file for the following program. But when I run<br>
this with lli, it always gives an error related with libstdc++.<br>
<br>
Is there some problem in clang 3.3? How can I tell clang++ to include<br>
libstdc++ when compiling?<br>
<br>
This problem only comes with .cpp extension, there's no problem with .c<br>
extension.<br>
<br>
<br>
My code:<br>
<br>
<br>
#include<iostream><br>
<br>
using namespace std;<br>
<br>
int main() {<br>
<br>
cout<< "Hello World" <<endl;<br>
<br>
return 0;<br>
<br>
}<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/libstc-with-clang-3-3-tp4034374.html" target="_blank">http://clang-developers.42468.n3.nabble.com/libstc-with-clang-3-3-tp4034374.html</a><br>

Sent from the Clang Developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>