<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Lucida Console";
panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";
mso-fareast-language:EN-AU;}
span.gem3dmtclfb
{mso-style-name:gem3dmtclfb;}
span.gem3dmtcpfb
{mso-style-name:gem3dmtcpfb;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-AU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Dear all<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am using a Windows 7 system, R studio 0.99.467, R x64 3.3.1 and R tools 34.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have been trying to run sourceCpp("reglinRcpp.cpp") in my R studio and got the following error message. It seems clear that the issue is that the Rcpp.h file cannot be found. So I have tried to run set PKG_CXXFLAGS=’-I/H:/R/win-library/3.3/Rcpp/include’
in the windows command window (see attached screenshot). However, this does not solve the issue. Could anyone advise me what I should do? Thanks a lot in advance!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kind regards<o:p></o:p></p>
<p class="MsoNormal">Xinda<o:p></o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<pre style="mso-line-height-alt:9.35pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black">c:/Rtools/mingw_64/bin/g++ -I"C:/PROGRA~1/R/R-33~1.1/include" -DNDEBUG -I"//INFPWFS1014.ad.unsw.edu.au/Staff081z3271570/R/win-library/3.3/Rcpp/include" -I"C:/Users/z3271570/Desktop/rsrcpp" -I"d:/Compiler/gcc-4.9.3/local330/include" -std=c++11 -O2 -Wall -mtune=core2 -c reglinRcpp.cpp -o reglinRcpp.o<o:p></o:p></span></pre>
<pre style="mso-line-height-alt:9.35pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black">reglinRcpp.cpp:1:18: fatal error: Rcpp.h: No such file or directory<o:p></o:p></span></pre>
<pre style="mso-line-height-alt:9.35pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"> #include <Rcpp.h><o:p></o:p></span></pre>
<pre style="mso-line-height-alt:9.35pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black"> ^<o:p></o:p></span></pre>
<pre style="mso-line-height-alt:9.35pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black">compilation terminated.<o:p></o:p></span></pre>
<pre style="mso-line-height-alt:9.35pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black">make: *** [reglinRcpp.o] Error 1<o:p></o:p></span></pre>
<pre style="mso-line-height-alt:9.35pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black">Warning message:<o:p></o:p></span></pre>
<pre style="mso-line-height-alt:9.35pt;background:white;word-break:break-all"><span style="font-family:"Lucida Console";color:black">running command 'make -f "C:/PROGRA~1/R/R-33~1.1/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-33~1.1/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="sourceCpp_17.dll" WIN=64 TCLBIN=64 OBJECTS="reglinRcpp.o"' had status 2 <o:p></o:p></span></pre>
<pre style="mso-line-height-alt:9.35pt;background:white;word-break:break-all"><span class="gem3dmtcpfb"><span style="font-family:"Lucida Console";color:#C5060B">Error in sourceCpp("reglinRcpp.cpp") : <o:p></o:p></span></span></pre>
<pre style="mso-line-height-alt:9.35pt;background:white;word-break:break-all"><span class="gem3dmtcpfb"><span style="font-family:"Lucida Console";color:#C5060B"> Error 1 occurred building shared library.</span></span><span style="font-family:"Lucida Console";color:black"><o:p></o:p></span></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>