search for: cxx_std

Displaying 12 results from an estimated 12 matches for "cxx_std".

2017 Mar 18
2
Experimental CXX_STD problem in R 3.4
R 3.4 has 'experimental' support for setting CXX_STD to CXX98 / CXX11 / CXX14 / CXX17. However on most platforms, the R configuration seems to leave the CXX1Y and CXX1Z fields blank in "${R_HOME}/etc/Makeconf" (rather than falling back on default CXX). Therefore specifying e.g CXX_STD= CXX14 will fail build with cryptic errors (due to comp...
2017 Mar 18
0
Experimental CXX_STD problem in R 3.4
On 18 March 2017 at 14:21, Jeroen Ooms wrote: | R 3.4 has 'experimental' support for setting CXX_STD to CXX98 / CXX11 | / CXX14 / CXX17. R 3.1.0 introduced CXX11 support. R 3.4.0 will have CXX14 support. So I would only refer to the CXX17 part as experimental. | However on most platforms, the R configuration seems to leave the | CXX1Y and CXX1Z fields blank in "${R_HOME}/etc/Makeconf&quot...
2018 Mar 02
2
Makevars CXX_STD variable ignored when no *.cpp files in src/
Hello! I might have found a bug in the way that R handles Makevars file when building a package. Value of variable CXX_STD is ignored - i.e. R does not use the correct compiler/flags - if there are no *.cpp files directly in the src/ directory (e.g. all *.cpp are in subdirectories, and OBJECTS variable is set accordingly). Adding a bogus *.cpp file fixes this issue. However, this is not very obvious (I would dare sayin...
2017 Mar 19
3
Experimental CXX_STD problem in R 3.4
...ng compiler has not been defined. Please test this. Martyn ________________________________________ From: R-devel <r-devel-bounces at r-project.org> on behalf of Dirk Eddelbuettel <edd at debian.org> Sent: 18 March 2017 15:55 To: Jeroen Ooms Cc: r-devel Subject: Re: [Rd] Experimental CXX_STD problem in R 3.4 On 18 March 2017 at 14:21, Jeroen Ooms wrote: | R 3.4 has 'experimental' support for setting CXX_STD to CXX98 / CXX11 | / CXX14 / CXX17. R 3.1.0 introduced CXX11 support. R 3.4.0 will have CXX14 support. So I would only refer to the CXX17 part as experimental. | Howeve...
2014 Mar 30
2
CXX_STD and configure.ac in packages
...XXFLAGS` AC_CONFIG_HEADERS([src/config.h]) AC_LANG(C++) AC_CHECK_HEADERS([unordered_map tr1/unordered_map]) AC_OUTPUT Use of configure.ac does not seem to be entirely consistent with section 1.2.4 of Writing R Extensions, where one is advised that to use C++(11? see below) code one should CXX_STD = CXX11 in Makevars(.win). My code does not require a compiler that supports the full C++11 feature set. In addition, I do not understand the logic of setting a variable that influences compiler flags in Makevars -- configure.ac will see a compiler with inaccurate flags. Is use of configure.ac...
2020 Oct 08
1
Installing package fails at "testing if installed package can be loaded from temporary location"
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 Best, Sam On Thu, Oct 8, 2020 at 3:39 PM Dirk Eddelbuettel <edd at debian....
2014 Sep 26
1
Why is my R package still compiling with the O2 flag?
...of the src/Makeconf file of my package (it is fairly standard I believe for a package using RcppEigen): PKG_CXXFLAGS = -I../inst/include -DEIGEN_DONT_PARALLELIZE $(SHLIB_OPENMP_CXXFLAGS) PKG_LIBS = `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` $(SHLIB_OPENMP_CXXFLAGS) CXX_STD = CXX11 and that of rrcov (which I m using for illustration's sake): PKG_LIBS=$(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
2020 Oct 08
3
Installing package fails at "testing if installed package can be loaded from temporary location"
Hi, I can not install packages from source which links to RcppArmadillo on Ubuntu 20.04 (after upgrading from 18.04). The following problem occurs: ** testing if installed package can be loaded from temporary location Error: package or namespace load failed for 'myPackage' in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object
2018 Mar 13
2
64-bit integer type warning on windows
Dear list, During the last two months, I spent a lot of time trying to remove the following warnings of my package randtoolbox: congruRand.c:180:3: warning: ISO C does not support the 'I64' ms_scanf length modifier [-Wformat=] sscanf(params[0], "%" PRIu64 "\n", &inp_mod); Please see
2016 Oct 16
3
compile c++ code in an R package without -g
Hello, I'm writing an R package that is mainly written in C++. By default, R CMD INSTALL creates C/C++ flags as follows: -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g However, my package is fairly large. With debug info compiled into the library, the generated .so file is over 200MB. Without debug info, it's about 30MB. I hope
2019 Jan 07
0
Failed to install RQuantLib in Ubuntu machine
...ussed just two weeks ago here: https://github.com/eddelbuettel/rquantlib/issues/119 I'll repeat my findings here for convenience. 1. git clone|lballabio/QuantLib ||./autogen.sh ./configure --prefix=$HOME/.local --enable-intraday make install| 2. git clone|eddelbuettel/rquantlib|and remove|CXX_STD=CXX11|from|src/Makevars.in||| 3. From the|rquantlib|parent directory, fire up R and execute|, library(devtools) install() library(RQuantLib) getHolidayList("UnitedStates", as.Date("2018-12-01"), as.Date("2019-01-02")) | On 1/6/19 12:36 PM, Christofer Bogaso wrote:...
2019 Jan 06
4
Failed to install RQuantLib in Ubuntu machine
Hi, <This issue was previously posted in R-help, but advised to post here as a more relevant group> I was trying to install RQuantLib in my Ubuntu machine which failed with below information : *> install.packages('RQuantLib', repos='http://cran.rstudio.com/ <http://cran.rstudio.com/>', INSTALL_opts = c('--no-lock'))* *Installing package into