<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">
<div>Hi, </div>
<div>I am a new beginner in using Rcpp with C++. </div>
<div>I have a piece of C++ code with Rcpp and boost graph library, and am trying to make a package with helps from Rcpp.package.skeleton() command. </div>
<div><br>
</div>
<div>When I try to install the package with Rcmd INSTALL pkgname (I'm running on windows machine), it seems that it is not recognizing the boost library by displaying error messages that it is not recognizing the header files from boost. I used the following
Makevars.win file in the src directory: </div>
<div><br>
</div>
<div>
<div>PKG_LIBS = $(shell ${R_HOME}/bin/Rscript.exe -e "Rcpp:::LdFlags()")</div>
<div>PKG_CPPFLAGS = -L "C:/Users/Won/Documents/Boost/boost_1_51/lib" -lboost_graph</div>
</div>
<div><br>
</div>
<div><span style="font-size:10pt">C:/Users/Won/Documents/Boost/boost_1_51/lib is the directory where the .dll files live. </span></div>
<div>Would you be able to point me in the right direction? Is there something I've done wrong in Makevars.win file? </div>
<div><br>
</div>
<div>Any comments would be greatly appreciated.</div>
<div><br>
</div>
<div>Thanks,</div>
</div>
</div>
</div>
</div>
</body>
</html>