On 16 May 2023 at 18:32, Serguei Sokol wrote:
| Try to add in <your_package_dir>/src/Makevars:
| 
| PKG_LIBS=$(FLIBS)

Good catch. For every RcppArmadillo package we recommend (and inject if you
use the RcppArmadillo.package.skeleton() helper) (and omit the earlier
comment lines)

  PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS)
  PKG_LIBS = $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

Source file (with addded comments) is at
https://github.com/RcppCore/RcppArmadillo/blob/master/inst/skeleton/Makevars
or in your friendly neighborhood RcppArmadillo installation as
system.file("skeleton", "Makevars", package="RcppArmadillo")

Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to