RcppArmadillo.h
and RcppGSL.h
are modelled similarly. They first include RcppCommon.h
, then some forward declarations, then they include Rcpp.h
that uses those forward declarations, then implementations.
It is definitely possible to use them both if you come up with the right order of includes.
This is definitely an Rcpp question as what is preventing you from using them both is (good or bad) design decisions.
You need to study RcppArmadillo.h
and RcppGSL.h
and come up with the right include order, or wait for someone to follow these hints and give you the answer. I might not have time to do it myself in the next few days.