Skip to content

Remove obsolete CXX_STD = CXX11 to allow Armadillo 15.0.x migration#14

Merged
zzawadz merged 2 commits intozzawadz:masterfrom
eddelbuettel:master
Jan 5, 2026
Merged

Remove obsolete CXX_STD = CXX11 to allow Armadillo 15.0.x migration#14
zzawadz merged 2 commits intozzawadz:masterfrom
eddelbuettel:master

Conversation

@eddelbuettel
Copy link
Contributor

Armadillo 15.0.* now makes C++14 the minimum compilation standard. For most packages, adapting to it can be very simple, and yours is one of them. In this PR we simply remove the declaration from the reference version of Makevars, Makevars.win, and DESCRIPTION -- and no other changes are needed. (We also removed a spurious call for library of RcppArmadillo; there is none as the package has always been header-only so this always returned an empty string.)

Please see issues #475 and below for context, and notably #489 for this first wave of PRs. It would be terrific if you could make an upload to CRAN 'soon' to remove the reliance on C++11 which we needed in the past, but which is by now a hindrance. Please do not hesitate to reach out if I can assist in any way or clarify matters.

/cc @kurthornik

@zzawadz zzawadz merged commit 6c5a3e7 into zzawadz:master Jan 5, 2026
Copy link
Contributor Author

@eddelbuettel eddelbuettel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend to change this.

@@ -1,2 +1,2 @@
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(SHLIB_OPENMP_CXXFLAGS)
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) `"${R_HOME}/bin${R_ARCH_BIN}/Rscript" -e "RcppArmadillo:::CxxFlags()"` $(SHLIB_OPENMP_CXXFLAGS)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong/obsolete/unnecessary. You do not need CxxFlags() from RcppArmadillo as R gives it to you via the LinkingTo: flag from DESCRIPTION.

@@ -1,3 +1,3 @@
PKG_LIBS += $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
PKG_LIBS += $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "RcppArmadillo:::CxxFlags()")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants