Charles, Maybe a close look at this will help: http://gallery.rcpp.org/articles/passing-cpp-function-pointers/ Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org