<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana,helvetica,sans-serif;font-size:10pt"><div>Thanks for replying. Could you give more details?<br><br><span>I installed LLVM and Clang following the instructions in <a target="_blank" href="http://clang.llvm.org/get_started.html">http://clang.llvm.org/get_started.html</a>. I also tried to modify the </span><tt>clang/lib/Frontend/InitHeaderSearch.cpp file but it didn't help. I couldn't figure out how I missed those liabraries. What else should I do?<br></tt></div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">发件人:</span></b> Óscar Fuentes <ofv@wanadoo.es><br><b><span style="font-weight: bold;">收件人:</span></b> cfe-dev@cs.uiuc.edu<br><b><span
style="font-weight: bold;">抄 送:</span></b> kobe James <public-god.son2046-/E1597aS9LRv1O+Z8WTAqQ@lo.gmane.org><br><b><span style="font-weight: bold;">发送日期:</span></b> 2011/4/24 (周日) 10:38:17 上午<br><b><span style="font-weight: bold;">主 题:</span></b> Re: [cfe-dev] 转发: 回复: Fail to compile clang-wpa.cpp<br></font><br>arrowdodger <<a ymailto="mailto:6yearold@gmail.com" href="mailto:6yearold@gmail.com">6yearold@gmail.com</a>> writes:<br><br>>> I have changed the command to<br>>><br>>> clang++ -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS clang-wpa.cpp -o<br>>> clang-wpa<br>>><br>>> And I got the following errors:<br>>><br>><br>> As i said, use llvm-config script. It will give you all necessary flags<br>> needed to compile your program.<br><br>Actually, he's missing the list of required libraries. Including the<br>clang ones which are not provided by
llvm-config.<br><br>My advice to the OP is to learn first how to invoke a C++ compiler,<br>what's a linker and how to use them in the generic case.<br><br>_______________________________________________<br>cfe-dev mailing list<br><a ymailto="mailto:cfe-dev@cs.uiuc.edu" 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>
</div></body></html>