<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">AFAIK You have to install Windows 10 SDK which comes with Visual Studio. Clang itself doesn’t provide headers.<div><br></div><div>But I dont know anything about Windows so I could be very wrong here<br><br><div id="AppleMailSignature" dir="ltr">Zhang</div><div dir="ltr"><br>在 2019年6月1日,20:17,Phyl Bean via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> 写道:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="auto"><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><br clear="all"></div><div><div class="gmail_default" style="font-family:georgia,serif;font-size:small">I'm not sure if this is the correct place to email for this kind of thing, but I couldn't find any other contact info. Also, I am new to llvm, so please try to be understanding.</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small">I keep getting an error when I try to compile a simple Hello World program (as a test)(error included below).</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small" dir="auto"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small" dir="auto">The error is:</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small" dir="auto"><br></div><div class="gmail_default" style="font-size:small" dir="auto"><font face="courier new, monospace">Clang: warning: unable to find a Visual Studio installation; try running Clang from a developer command prompt [-Wmsvc-not-found]</font></div><div class="gmail_default" style="font-size:small" dir="auto"><font face="courier new, monospace">hello.c:1:10: fatal error: 'string.h' file not found</font></div><div class="gmail_default" style="font-size:small" dir="auto"><font face="courier new, monospace">#include <string.h></font></div><div class="gmail_default" style="font-size:small" dir="auto"><font face="courier new, monospace"> ^~~~~~~~~~</font></div><div class="gmail_default" style="font-size:small" dir="auto"><font face="courier new, monospace">1 error generated</font></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small" dir="auto"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small">It looks as if Clang is looking for a Visual Studio installation for missing C library headers (string.h, stdio.h, math.h, etc.). Does Clang/llvm come with C library headers? If not, where can I get them? I don't want to install Visual Studio because (to my understanding) it's proprietary software. I've included the program I'm trying to compile (hello.c) below.</div><div class="gmail_default" style="font-family:georgia,serif;font-size:small" dir="auto"><br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:small" dir="auto"><br></div><div class="gmail_default" style="font-size:small" dir="auto"><font face="courier new, monospace">#include <string.h></font></div><div class="gmail_default" style="font-size:small" dir="auto"><font face="courier new, monospace">#include <stdio.h></font></div><div class="gmail_default" style="font-size:small" dir="auto"><font face="courier new, monospace">int main(void){</font></div><div class="gmail_default" style="font-size:small" dir="auto"><font face="courier new, monospace"> print("Hello World!");</font></div><div class="gmail_default" style="font-size:small" dir="auto"><font face="courier new, monospace"> return 0;</font></div><div class="gmail_default" style="font-size:small" dir="auto"><font face="courier new, monospace">}</font></div><br></div>-- <br><div dir="ltr" class="m_9212382229594112691m_-8916962092457160729gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font face="arial black, sans-serif" color="#0000ff"><br></font></div><div><font face="arial black, sans-serif" color="#0000ff"><br></font></div><div><font face="arial black, sans-serif" color="#0000ff"><br></font></div><div><font face="arial black, sans-serif" color="#0000ff">Please note new suite number</font></div><div><font face="georgia, serif" size="2" color="#9900ff">******<br></font></div><font size="2" face="georgia, serif" color="#9900ff">Phyl Bean </font></div><div dir="ltr"><font size="2" face="georgia, serif" color="#9900ff">Attorney at Law </font></div><div dir="ltr"><div><font size="2" face="georgia, serif" color="#9900ff"></font><div><font size="2" face="georgia, serif" color="#9900ff">207 N. Chestnut Street, Suite 240 </font></div><div><font size="2" face="georgia, serif" color="#9900ff">Chaska, Minnesota 55318</font></div><div><font size="2" face="georgia, serif" color="#9900ff">(Parking is behind building)</font></div><font size="2" face="georgia, serif" color="#9900ff">Ph: (952) 217-4473<br>Fax: (952) 955-9648</font><div><font size="2" face="georgia, serif" color="#9900ff">Cell: (612) 384-9062 <br><a href="mailto:phylbean@gmail.com" rel="noreferrer" target="_blank">phylbean@gmail.com</a><br><a href="http://www.phylbeanlaw.com/" rel="noreferrer" target="_blank">www.phylbeanlaw.com</a></font></div></div><div><span style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px;line-height:22.4px"><br></span></div><div><span style="color:rgb(37,37,37);font-family:sans-serif;font-size:14px;line-height:22.4px">CONFIDENTIALITY NOTICE:
The contents of this email message and any attachments are intended solely for the addressee(s)
and may contain confidential and/or privileged information and may be legally protected from
disclosure. If you are not the intended recipient of this message or their agent, or if this message
has been addressed to you in error, please immediately alert the sender by reply email and then
delete this message and any attachments. If you are not the intended recipient, you are hereby
notified that any use, dissemination, copying, or storage of this message or its attachments is
strictly prohibited. <br></span></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
</div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>LLVM Developers mailing list</span><br><span><a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a></span><br><span><a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></span><br></div></blockquote></div></body></html>