On 15 June 2018 at 10:56, Jason Serviss wrote:
| Qiang,
| 
| Sorry for the late reply (somehow your reply ended up in the Junk folder). 
Switching RcppArmadillo and RcppEigen in the LinkingTo section (and thus the 
header order) did not help BUT your mention of NDEBUG lead me to this Githuhb 
issue: https://github.com/RcppCore/RcppArmadillo/issues/116. The addition of a 
similar file in the inst folder (see change log at the bottom of the issue) 
with #define NDEBUG 1 and then adding the file as an import in RcppExports.cpp 
did the trick. Unfortunately, running compileAttributes() locally overwrites 
the manual changes in RcppExports.cpp but, for now, I guess I will have to live 
with this. Thanks a lot for your input!

Re-read the Rcpp Attributes vignette more carefully. There are way to have a
header file auto-included, one way is to name the same as your package but
append _types.h -- ie RcppGSL has inst/include/RcppGSL_types.h.

No need for manual updates then.

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

Reply via email to