Re: [Rcpp-devel] error: expected unqualified-id before string constant

2013-02-24 Thread JJ Allaire
> I presume that the Rcpp-attributes vignette never ever shows RcppExport, > and > JJ probably did not assume it could be used. > > And it "really" is just an alias for the uglier-looking 'extern "C"'. And > of > course added by the very layers that sourceCpp() puts around the code you > give it..

Re: [Rcpp-devel] error: expected unqualified-id before string constant

2013-02-24 Thread Dirk Eddelbuettel
On 24 February 2013 at 09:56, Greg Minshall wrote: | hi. another "find" in experimenting is that [[Rcpp::export]] and the | RcppExport (in, e.g., | | // [[Rcpp::export]] | RcppExport SEXP pass1(Rcpp::IntegerVector rgbtotype, | Rcpp::IntegerMatrix pixmap, |

[Rcpp-devel] error: expected unqualified-id before string constant

2013-02-24 Thread Greg Minshall
hi. another "find" in experimenting is that [[Rcpp::export]] and the RcppExport (in, e.g., // [[Rcpp::export]] RcppExport SEXP pass1(Rcpp::IntegerVector rgbtotype, Rcpp::IntegerMatrix pixmap, int toosmall) {...} are mutually exclusive. that's