[Rcpp-devel] error: wrap is not a template function
Dirk Eddelbuettel
edd at debian.org
Thu May 21 17:41:34 CEST 2015
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 | edd at debian.org
More information about the Rcpp-devel
mailing list