<div dir="ltr"><div>If you're using mingw, make sure you're using the right OS in the triple.  This is usually a flag like --target=i686-pc-mingw32.  clang may be defaulting to an OS of win32, which has a slightly different C ABI w.r.t. passing records by value, bitfields, and other little things.</div>
<div><br></div><div>You should also try to get a stack trace with gdb to get more information.<br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 11, 2013 at 10:56 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">Hello Bastein,<br>
<br>
<br>
I did include -stdlib=libstdc++ in the command line. Clang does generate a<br>
.bc file, but when I run the .exe file, the program crashes immediately.<br>
Windows gives the following error: "Your application has stopped working".<br>
<br>
I think it has something to do with libstdc++-6.dll.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/libstc-with-clang-3-3-tp4034374p4034404.html" target="_blank">http://clang-developers.42468.n3.nabble.com/libstc-with-clang-3-3-tp4034374p4034404.html</a><br>

<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br></div>