I have an existing legacy.c file with legacy.h interface that I am putting into 
a package. I figured out how to create an rcpp glue file that uses an extern 
"C" block to include the .h file so my C++ function can call it.

However, it looks like Rcpp is defining the OBJECTS variable before I put 
legacy.o in, so I have had to use

OBJECTS += legacy.o

in the Makevars file so it will compile and link the legacy code in along with 
the object files setup by Rcpp,  but R CMD check complains about portability.

Is there a way to do this that does not irritate R CMD check?
-- 
Sent from my phone. Please excuse my brevity.
_______________________________________________
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