title: Why do I get the error for using "pnorm" in Rcpp
body: <p>I need to involve variable from <code>arma::</code>in my Rcpp code. But I ran into a problem when trying to use the sugar function <code>pnorm</code>. Here is a demo:</p>
  
  <pre><code>#include &lt;RcppArmadillo.h&gt;
  #include &lt;RcppArmadilloExtensions/sample.h&gt;
  // [[Rcpp::depends(RcppArmadillo)]]
  using namespace Rcpp;
  
  // [[Rcpp::export]]
  double pget(NumericVector x, NumericVector beta) {
    arma::colvec xx = Rcpp::as&lt;arma::colvec&gt;(x) ;
    arma::colvec bb = Rcpp::as&lt;arma::colvec&gt;(beta) ;
    double tt = as_scalar( arma::trans(xx) * bb);
    double temp = Rcpp::pnorm(tt);
    return temp;
  }
  </code></pre>
  
  <p>Then I got an error: <code>no matching function for call to 'pnorm5'</code></p>
  
  <p>Does that mean I cannot use <code>Rcpp::pnorm</code>???</p>