<div dir="ltr">Thank you Dirk!  <div><br></div><div>The issue stemmed from my using RcppArmadillo's sample function.  Reference link here: </div><div><a href="http://gallery.rcpp.org/articles/using-the-Rcpp-based-sample-implementation/">http://gallery.rcpp.org/articles/using-the-Rcpp-based-sample-implementation/</a><br></div><div><br></div><div>At the top of my .cpp file I had used the following code to be able to call upon that function: </div><div><br></div><div><div>#include <armadillo></div><div>#include <RcppArmadilloExtensions/sample.h></div><div>//[[Rcpp::depends(RcppArmadillo)]]</div></div><div><br></div><div><br></div><div>After I created another function that avoided my needing to call upon the function that required this, then going back to putting the usual stuff at the top of my .cpp file,</div><div><br></div><div><div>#include <RcppArmadillo.h></div><div>//[[Rcpp::depends(RcppArmadillo)]]</div></div><div><br></div><div><br></div><div>the note went away.  </div><div><br></div><div>Thank you again,</div><div>Dan</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 24, 2015 at 10:37 AM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 24 August 2015 at 10:19, Daniel McCarthy wrote:<br>
|<br>
| I am attempting to push a package to CRAN but am having the following issue<br>
| with the CRAN checks:<br>
|<br>
| * using R version 3.1.3 (2015-03-09)<br>
| * using platform: x86_64-w64-mingw32 (64-bit)<br>
| ....<br>
| * checking compiled code ... NOTE<br>
| File 'perccal/libs/i386/perccal.dll':<br>
|   Found '_ZSt4cout', possibly from 'std::cout' (C++)<br>
|     Object: 'dboot_multi.o'<br>
| File 'perccal/libs/x64/perccal.dll':<br>
|   Found '_ZSt4cout', possibly from 'std::cout' (C++)<br>
|     Object: 'dboot_multi.o'<br>
<br>
</span>See "Writing R Extensions"; this is not a Rcpp issue (though Rcpp offers you<br>
the Rcpp::Rcout "device" to send output to in order to have it synced with<br>
the R standard output).<br>
<span class=""><br>
| This post referenced a similar issue: <a href="http://comments.gmane.org/" rel="noreferrer" target="_blank">http://comments.gmane.org/</a><br>
| gmane.comp.lang.r.rcpp/3071<br>
|<br>
| A Google search seems to indicate many packages have similar notes:https://<br>
| <a href="http://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=Found+" rel="noreferrer" target="_blank">www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=Found+</a><br>
| '_ZSt4cout'+note+package<br>
|<br>
| For example, bayes-tree: <a href="http://www2.uaem.mx/r-mirror/bin/windows/contrib/3.1/" rel="noreferrer" target="_blank">http://www2.uaem.mx/r-mirror/bin/windows/contrib/3.1/</a><br>
| check/BayesTree-check.log<br>
|<br>
| This is the only note remaining -- everything else went through without issue<br>
| and '_ZSt4cout' was not part of any code that I had written. I am importing<br>
| Rcpp and RcppArmadillo for 2 functions used in the package. I am stumped, but<br>
<br>
</span>By default we take care of this:<br>
<br>
  // Rcpp has its own stream object which cooperates more nicely with R's i/o<br>
  // And as of Armadillo 2.4.3, we can use this stream object as well<br>
  #if !defined(ARMA_DEFAULT_OSTREAM)<br>
  #define ARMA_DEFAULT_OSTREAM Rcpp::Rcout<br>
  #endif<br>
<br>
Maybe you accidentally undefined this...<br>
<span class=""><br>
| assume that I would not be allowed to push a package to CRAN which has this<br>
| note. Any help would be most appreciated!<br>
<br>
</span>The message is rather explicit, something in the object code dboot_multi.o<br>
refers to std::cout.   You need to clean that up.<br>
<br>
(I think some folks have some clever macros in their headers to automate<br>
this.  I have in the past resorted to explicitly alterting code, or to macro<br>
use to switch to our Rcout as above.)<br>
<span class="HOEnZb"><font color="#888888"><br>
Dirk<br>
<br>
--<br>
<a href="http://dirk.eddelbuettel.com" rel="noreferrer" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</font></span></blockquote></div><br></div>