Yes, this is possible. You have to write a header file for every C++ file from which you want to include a function. These header files must than be included in your main file. See section "1.10. Sharing Code" in the Rcpp Attributes vignette for more details. However, when your project has reached a size that warrants multiple files, it also warrants creating a package for it.