<div dir="ltr">Clang adds the prefix because it's part of the ABI.  It's what both MSVC and gcc do for functions declared with the C calling convention on 32-bit Windows.  Why is the underscore prefix missing for Python?</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 11, 2013 at 9:59 AM, Ryan Gonzalez <span dir="ltr"><<a href="mailto:rymg19@gmail.com" target="_blank">rymg19@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello,<div><br></div><div>I noticed something about when Clang exports symbols: they are exported with a leading underscore(`_`). This can cause linker errors like crazy when building shared libraries or Python extensions under Windows. My request is that the leading underscore is removed. I'm not sure if this is in LLVM, not Clang, but it causes problems on Windows nonetheless.</div>


<div><br></div><div>Also, please alert me is I am posting in the wrong mailing list. I'm kinda new here... :)<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br>Ryan
</font></span></div></div>
<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>
<br></blockquote></div><br></div>