Pass it -triple <span style="font-family:arial,sans-serif;line-height:16px">i386-pc-</span><em style="font-style:normal;color:rgb(0,0,0);font-family:arial,sans-serif;line-height:16px">mingw32, but this will probably assume that your mingw is located in C:\mingw</em><div class="gmail_extra">

<br><br><div class="gmail_quote">On Thu, Nov 15, 2012 at 7:10 AM, lis <span dir="ltr"><<a href="mailto:li_shao1@hotmail.com" target="_blank">li_shao1@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Richard Smith wrote<br>
<div class="im">> On Tue, Nov 13, 2012 at 5:42 PM, lis <<br>
<br>
> li_shao1@<br>
<br>
</div><div><div class="h5">> > wrote:<br>
>> I am new to Clang. I try to use clang-2.9-mingw to build Boost_1_52_0.<br>
>> One<br>
>> problem I have is that $(Includes) is not set when build with bjam. I<br>
>> tried<br>
>> to workaround that by modifying clang-linux.jam to hard-code the include<br>
>> path.<br>
>><br>
>> actions compile.c++.without-pth {<br>
>>   "$(CONFIG_COMMAND)" -c -x c++ $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES)<br>
>> -I"C:\boost_1_52_0\boost_1_52_0\boost\compatibility\cpp_c_headers"<br>
>> -I"C:\boost_1_52_0\boost_1_52_0" -I"C:\boost_1_52_0\boost_1_52_0\boost"<br>
>> -I"C:\boost_1_52_0\boost_1_52_0\boost\tr1\tr1" -o "$(<)" "$(>)"<br>
>> }<br>
>><br>
>>  This helped to get around some of the include path issues but I stuck<br>
>> with<br>
>> the following message:<br>
>><br>
>> In file included from<br>
>> C:\boost_1_52_0\boost_1_52_0\boost\tr1\tr1/utility:19:<br>
>> C:\boost_1_52_0\boost_1_52_0/boost/tr1/detail/config_all.hpp:161:12:<br>
>> fatal<br>
>> error<br>
>> : '../include/utility' file not found<br>
>> #  include BOOST_TR1_STD_HEADER(utility)<br>
>>            ^<br>
>> C:\boost_1_52_0\boost_1_52_0/boost/tr1/detail/config_all.hpp:83:41: note:<br>
>> instantiated from:<br>
>> #     define BOOST_TR1_STD_HEADER(name) <../include/name><br>
>><br>
>> My question is: What do I need to do to get Clang to set up the include<br>
>> path<br>
>> correctly?<br>
><br>
> I'm not sure what the problem is, but you should use a newer version<br>
> of Clang. Clang development moves fast, and version 2.9 is now very<br>
> far behind in terms of language support.<br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
<br>
</div></div>> cfe-dev@.uiuc<br>
<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>
<br>
I downloaded the latest 3.1 clang from MingW from<br>
<a href="http://llvm.org/releases/download.html" target="_blank">http://llvm.org/releases/download.html</a>  and it looks like it is using Visual<br>
Studio include headers as the default. How can I reset it to use boost<br>
headers or GCC headers?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/clang-and-boost-tp2788340p4028236.html" target="_blank">http://clang-developers.42468.n3.nabble.com/clang-and-boost-tp2788340p4028236.html</a><br>


<div class="im HOEnZb">Sent from the Clang Developers mailing list archive at Nabble.com.<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<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>