Solved!
Apparently, declaration and definition of 'as' and 'wraps' were correct
- that explains why it worked as expected in a sample implementation.
The problem was likely related to the order in which <Rcpp.h> (and
<RcppGSL.h>) were included (as Kevin suggested).
Following the 'sandboxed_server' example available in RInside, this
recipe worked out[1]:
#include "SamData.hpp"
#include <RcppCommon.h>
#include "samdataRcppWrapperDecl.h"
#include <Rcpp.h>
#include "samdataRcppWrapperDef.h"
...
Thanks a lot,
Fabio
[1] https://github.com/fa-vio/RcppNC/tree/master/asWrapTry
On 05/21/2015 07:15 PM, Dirk Eddelbuettel wrote:
On 21 May 2015 at 12:59, Gábor Csárdi wrote:
| https://github.com/search?utf8=%E2%9C%93&q=
| wrap+as+user%3Acran+language%3AC%2B%2B&type=Code
|
| But unfortunately both wrap and as are non-specific.....
Throwing 'template' in front of both seems to narrow this. Nice!
https://github.com/search?utf8=%E2%9C%93&q=template+wrap+as+user%3Acran+language%3AC%2B%2B&type=Code
Dirk
_______________________________________________
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