<html><body bgcolor="#FFFFFF"><div>Hello,&nbsp;</div><div><br></div><div>Thanks for reposting here. Which operating system is this ? If windows, do you have Rtools properly installed ?</div><div><br></div><div>Can you try to use the "verbose" argument of cxxfunction&nbsp;</div><div><br></div><div>Romain</div><div><br><br><div><br></div></div><div><br>Le 21 juil. 2010 à 02:34, param jeet &lt;<a href="mailto:humtumiit@gmail.com">humtumiit@gmail.com</a>&gt; a écrit&nbsp;:<br><br></div><div></div><blockquote type="cite"><div><div class="gmail_quote">
<div class="gmail_quote">
<div>Hello,</div>
<div>&nbsp;&nbsp;</div>
<div>I have to work with Rcpp interface. I have installed packages inline and Rcpp.&nbsp;</div>
<div>&nbsp;</div>
<div>When I use the function below,&nbsp;I get the error. Error is following function statement below.&nbsp; How to sort out this problem? </div>
<div>
<div>I would appreciate your help. </div>
<div>&nbsp;</div></div>
<div>&nbsp;</div>
<div>fx &lt;- cxxfunction( signature( x = "numeric" ),<br>+ ' NumericVector xx(x); return wrap( std::accumulate( xx.begin(), xx.end(), 0.0 ) ) ; '<br>+ , plugin = "Rcpp")<br><br><strong><font color="#ff0000">ERROR(s) during compilation: source code errors or compiler configuration errors!</font></strong><br>
<br>Program source:<br>1: // includes from the plugin<br>2: <br>3: #include &lt;Rcpp.h&gt;<br>4: <br>5: <br>6: #ifndef BEGIN_RCPP<br>7: #define BEGIN_RCPP<br>8: #endif<br>9: <br>10: #ifndef END_RCPP<br>11: #define END_RCPP<br>
12: #endif<br>13: <br>14: using namespace Rcpp;<br>15: <br>16: <br>17: // user includes<br>18: <br>19: <br>20: // declaration<br>21: extern "C" {<br>22: SEXP file712b6459( SEXP x) ;<br>23: }<br>24: <br>25: // definition<br>
26: <br>27: SEXP file712b6459( SEXP x ){<br>28: BEGIN_RCPP<br>29: NumericVector xx(x); return wrap( std::accumulate( xx.begin(), xx.end(), 0.0 ) ) ; <br>30: END_RCPP<br>31: }<br>32: <br>33: <br>Error in compileCode(f, code, language = language, verbose = verbose) : <br>
Compilation ERROR, function(s)/method(s) not created!<br><br></div>
<div>&nbsp;</div>
<div>I would appreciate your help. </div>
<div>&nbsp;</div>
<div>Regards:</div>
<div>Param<br></div>
<div>&nbsp;</div>
<div>&nbsp;</div></div><br></div><br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Rcpp-devel mailing list</span><br><span><a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a></span><br><span><a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a></span><br></div></blockquote></body></html>