The R include instruction (to the headers shipped by RcppArmadillo) really really need to come first and that ordering is usually respected. That issue is something you may want to take to r-sig-mac ...
## (at your option) any later version. ## RcppArmadillo is distributed in the hope that it will be useful, but ...