On 21 May 2015 at 17:17, Fabio Tordini wrote: | while extending Rcpp with my C++ classes, I received hundreds of " | 'wrap' is not a template function" and " 'as' is not a template | function" errors when compiling. Beside this, I get an impressive list | of errors referring to RcppGSL files. | | The library from which my classes come from makes use GSL (on C++ side), | thus I link RcppGSL to my package. | | Here is my extending for one class: | #ifndef SAMDATA_HPP_ | #define SAMDATA_HPP_ | | class SamData; | | #include <RcppCommon.h> | | namespace Rcpp { | template<> SEXP wrap(const SamData &s); | template<> SamData as( SEXP s ) ; | }
That is a declaration. You also need to supply definitions. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel