<div dir="ltr"><div>Hello,</div><div> </div><div>I want to use Rcpp with boost, the boost headers are installed in 'C:\libraries\boost_1_49_0'. How to set the -I flag?</div><div> </div><div><span style="font:13px/15px "Lucida Console";color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:pre-wrap;border-collapse:separate;font-size-adjust:none;font-stretch:normal;background-color:rgb(225,226,229)"><pre style="margin:0px;line-height:1.2;font-family:"Lucida Console";font-size:10pt!important;white-space:pre-wrap!important;outline-style:none" tabindex="0">
<span style="color:blue;white-space:pre">> </span><span style="color:blue">sourceCpp("<font style="background-color:rgb(255,255,255)" color="#000000">testBoost</font>.cpp")</span></pre></span></div><div><span style="font:13px/15px "Lucida Console";color:rgb(0,0,0);text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:pre-wrap;border-collapse:separate;font-size-adjust:none;font-stretch:normal;background-color:rgb(225,226,229)"><pre style="margin:0px;line-height:1.2;font-family:"Lucida Console";font-size:10pt!important;white-space:pre-wrap!important;outline-style:none" tabindex="0">
g++ -m64 -I"C:/R/R-215~1.2/include" -DNDEBUG     -I"C:/R/R-2.15.2/library/Rcpp/include" -I"d:/RCompile/CRANpkg/extralibs64/local/include"     -O2 -Wall  -mtune=core2 -c testBoost.cpp -o testBoost.o testBoost.cpp:2:29: fatal error: boost\foreach.hpp: No such file or directory compilation terminated. make: *** [testBoost.o] Error 1 
<span style="color:rgb(197,6,11)">Error in sourceCpp("testBoost.cpp") : 
  Error 1 occurred building shared library.</span></pre><pre style="margin:0px;line-height:1.2;font-family:"Lucida Console";font-size:10pt!important;white-space:pre-wrap!important;outline-style:none" tabindex="0">
<span style="color:rgb(197,6,11)"></span> </pre><pre style="margin:0px;line-height:1.2;font-family:"Lucida Console";font-size:10pt!important;white-space:pre-wrap!important;outline-style:none" tabindex="0"><span style="color:rgb(197,6,11)"><font style="background-color:rgb(255,255,255)" color="#000000">Regards,</font></span></pre>
<pre style="margin:0px;line-height:1.2;font-family:"Lucida Console";font-size:10pt!important;white-space:pre-wrap!important;outline-style:none" tabindex="0"><span style="color:rgb(197,6,11)"><font style="background-color:rgb(255,255,255)" color="#000000">André</font></span></pre>
</span></div></div>