Hi Douglas,<div><br></div><div>I assume I do not need to do anything with R after installing RTools? I reinstalled RTools and restarted R and got the same errors.</div><div><br></div><div>Henry<br><br><div class="gmail_quote">
On Tue, Mar 22, 2011 at 12:24 PM, Douglas Bates <span dir="ltr">&lt;<a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, Mar 22, 2011 at 2:16 PM, Henry Bee &lt;<a href="mailto:henry.bee@gmail.com">henry.bee@gmail.com</a>&gt; wrote:<br>
&gt; Hi Christian,<br>
&gt; Thanks for the source file. Below are the full results as you requested.<br>
&gt; It&#39;s giving the same error as before. Is 64-bit R supported?<br>
<br>
</div>64-bit R is supported.  Has it already been established that you have<br>
the Rtools (compilers, linkers, etc.) from<br>
<a href="http://www.murdoch-sutherland.com/Rtools/" target="_blank">www.murdoch-sutherland.com/Rtools/</a> installed?<br>
<div><div></div><div class="h5"><br>
&gt;&gt; source(&#39;tmp.R&#39;, verbose = TRUE)<br>
&gt; &#39;envir&#39; chosen:&lt;environment: R_GlobalEnv&gt;<br>
&gt; encoding = &quot;native.enc&quot; chosen<br>
&gt; --&gt; parsed 3 expressions; now eval(.)ing them:<br>
&gt;&gt;&gt;&gt;&gt; eval(expression_nr. 1 )<br>
&gt;                  =================<br>
&gt;&gt; require(inline)<br>
&gt; curr.fun: symbol require<br>
&gt;  .. after ‘expression(require(inline))’<br>
&gt;&gt;&gt;&gt;&gt; eval(expression_nr. 2 )<br>
&gt;                  =================<br>
&gt;&gt; src &lt;- &#39;<br>
&gt; + Rcpp::NumericVector xa(a);<br>
&gt; + Rcpp::NumericVector xb(b);<br>
&gt; + int n_xa = xa.size(), n_xb = xb.size();<br>
&gt; +<br>
&gt; + Rcpp::NumericVector xab(n_xa + n_x .... [TRUNCATED]<br>
&gt; curr.fun: symbol &lt;-<br>
&gt;  .. after ‘expression(src &lt;- &#39;’‘Rcpp::NumericVector<br>
&gt; xa(a);’‘Rcpp::NumericVector xb(b);’‘int n_xa = xa.size(), n_xb =<br>
&gt; xb.size();’‘’‘Rcpp::NumericVector xab(n_xa + n_xb - 1);’‘for (int i = 0; i &lt;<br>
&gt; n_xa; i++)’‘for (int j = 0; j &lt; n_xb; j++)’‘xab[i + j] += xa[i] *<br>
&gt; xb[j];’‘return xab;’‘&#39;)’<br>
&gt;&gt;&gt;&gt;&gt; eval(expression_nr. 3 )<br>
&gt;                  =================<br>
&gt;&gt; fun &lt;- cxxfunction( signature(a=&quot;numeric&quot;, b=&quot;numeric&quot;), src,<br>
&gt;&gt; plugin=&quot;Rcpp&quot;, verbose=TRUE)<br>
&gt;  &gt;&gt; setting environment variables:<br>
&gt; PKG_LIBS =<br>
&gt;  D:/Users/Henry/Documents/R/win-library/2.12/Rcpp/lib/x64/libRcpp.a<br>
&gt;  &gt;&gt; LinkingTo : Rcpp<br>
&gt; CLINK_CPPFLAGS =<br>
&gt;  -I&quot;D:/Users/Henry/Documents/R/win-library/2.12/Rcpp/include&quot;<br>
&gt;  &gt;&gt; Program source :<br>
&gt;    1 :<br>
&gt;    2 : // includes from the plugin<br>
&gt;    3 :<br>
&gt;    4 : #include &lt;Rcpp.h&gt;<br>
&gt;    5 :<br>
&gt;    6 :<br>
&gt;    7 : #ifndef BEGIN_RCPP<br>
&gt;    8 : #define BEGIN_RCPP<br>
&gt;    9 : #endif<br>
&gt;   10 :<br>
&gt;   11 : #ifndef END_RCPP<br>
&gt;   12 : #define END_RCPP<br>
&gt;   13 : #endif<br>
&gt;   14 :<br>
&gt;   15 : using namespace Rcpp;<br>
&gt;   16 :<br>
&gt;   17 :<br>
&gt;   18 : // user includes<br>
&gt;   19 :<br>
&gt;   20 :<br>
&gt;   21 : // declarations<br>
&gt;   22 : extern &quot;C&quot; {<br>
&gt;   23 : SEXP file5a2532f3( SEXP a, SEXP b) ;<br>
&gt;   24 : }<br>
&gt;   25 :<br>
&gt;   26 : // definition<br>
&gt;   27 :<br>
&gt;   28 : SEXP file5a2532f3( SEXP a, SEXP b ){<br>
&gt;   29 : BEGIN_RCPP<br>
&gt;   30 :<br>
&gt;   31 : Rcpp::NumericVector xa(a);<br>
&gt;   32 : Rcpp::NumericVector xb(b);<br>
&gt;   33 : int n_xa = xa.size(), n_xb = xb.size();<br>
&gt;   34 :<br>
&gt;   35 : Rcpp::NumericVector xab(n_xa + n_xb - 1);<br>
&gt;   36 : for (int i = 0; i &lt; n_xa; i++)<br>
&gt;   37 : for (int j = 0; j &lt; n_xb; j++)<br>
&gt;   38 : xab[i + j] += xa[i] * xb[j];<br>
&gt;   39 : return xab;<br>
&gt;   40 :<br>
&gt;   41 : END_RCPP<br>
&gt;   42 : }<br>
&gt;   43 :<br>
&gt;   44 :<br>
&gt; Compilation argument:<br>
&gt;  C:\PROGRA~1\R\R-212~1.2/bin/x64/R CMD SHLIB file5a2532f3.cpp 2&gt;<br>
&gt; file5a2532f3.cpp.err.txt<br>
&gt; ERROR(s) during compilation: source code errors or compiler configuration<br>
&gt; errors!<br>
&gt; Program source:<br>
&gt;   1:<br>
&gt;   2: // includes from the plugin<br>
&gt;   3:<br>
&gt;   4: #include &lt;Rcpp.h&gt;<br>
&gt;   5:<br>
&gt;   6:<br>
&gt;   7: #ifndef BEGIN_RCPP<br>
&gt;   8: #define BEGIN_RCPP<br>
&gt;   9: #endif<br>
&gt;  10:<br>
&gt;  11: #ifndef END_RCPP<br>
&gt;  12: #define END_RCPP<br>
&gt;  13: #endif<br>
&gt;  14:<br>
&gt;  15: using namespace Rcpp;<br>
&gt;  16:<br>
&gt;  17:<br>
&gt;  18: // user includes<br>
&gt;  19:<br>
&gt;  20:<br>
&gt;  21: // declarations<br>
&gt;  22: extern &quot;C&quot; {<br>
&gt;  23: SEXP file5a2532f3( SEXP a, SEXP b) ;<br>
&gt;  24: }<br>
&gt;  25:<br>
&gt;  26: // definition<br>
&gt;  27:<br>
&gt;  28: SEXP file5a2532f3( SEXP a, SEXP b ){<br>
&gt;  29: BEGIN_RCPP<br>
&gt;  30:<br>
&gt;  31: Rcpp::NumericVector xa(a);<br>
&gt;  32: Rcpp::NumericVector xb(b);<br>
&gt;  33: int n_xa = xa.size(), n_xb = xb.size();<br>
&gt;  34:<br>
&gt;  35: Rcpp::NumericVector xab(n_xa + n_xb - 1);<br>
&gt;  36: for (int i = 0; i &lt; n_xa; i++)<br>
&gt;  37: for (int j = 0; j &lt; n_xb; j++)<br>
&gt;  38: xab[i + j] += xa[i] * xb[j];<br>
&gt;  39: return xab;<br>
&gt;  40:<br>
&gt;  41: END_RCPP<br>
&gt;  42: }<br>
&gt;  43:<br>
&gt;  44:<br>
&gt; Error in compileCode(f, code, language = language, verbose = verbose) :<br>
&gt;   Compilation ERROR, function(s)/method(s) not created!<br>
&gt; In addition: Warning message:<br>
&gt; running command &#39;C:\PROGRA~1\R\R-212~1.2/bin/x64/R CMD SHLIB<br>
&gt; file5a2532f3.cpp 2&gt; file5a2532f3.cpp.err.txt&#39; had status 1<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; 2011/3/21 Christian Gunning &lt;<a href="mailto:icos.atropa@gmail.com">icos.atropa@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; &quot;Here&#39;s the command:&quot;<br>
&gt;&gt;<br>
&gt;&gt; Works for me.  Try sourcing the attached file (which includes your<br>
&gt;&gt; command, +verbose=T), and post back the *full* results, including the<br>
&gt;&gt; source(&#39;tmp.R.txt&#39;) command and the next prompt line.<br>
&gt;&gt;<br>
&gt;&gt; -christian<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; A man, a plan, a cat, a ham, a yak, a yam, a hat, a canal – Panama!<br>
&gt;<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Rcpp-devel mailing list<br>
&gt; <a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
&gt; <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>