On 8 October 2020 at 16:43, Sam H wrote:
| Dirk, thank you a thousand times.
| 
| Indeed, src/Makevars was wrong. I modified Makevars so that now looks like
| the below and the package now compiled and linked properly.
| CXX_STD = CXX11
| 
| PKG_LIBS += $(SHLIB_OPENMP_CXXFLAGS) $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
| $(shell ${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()")
| PKG_CXXFLAGS = $(SHLIB_OPENMP_CXXFLAGS) -I../inst/include

Awesome.

I should think of a really clever way to catch that before it happens.
Trouble here is that R doesn't 'read' the src/Makevars and simply lets make
and g++ (or clang++) take care of things so the failure is silent.

Yet extremely frustrating and tricky to debug.  If anybody has clever 
pointers...

Dirk

PS The CXX_STD=CXX11 is mostly historic. R itself imposes that now ... as
will RcppArmadillo from the next release.

-- 
https://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

_______________________________________________
R-SIG-Debian mailing list
R-SIG-Debian@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-debian

Reply via email to