Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Error: C++14 standard requested but CXX14 is not defined

dotR <- file.path(Sys.getenv("HOME"), ".R")
if (!file.exists(dotR)) dir.create(dotR)
M <- file.path(dotR, "Makevars")
if (!file.exists(M)) file.create(M)
cat("
CXX14FLAGS=-O3 -march=native -mtune=native -fPIC",
    "CXX14=/opt/rh/devtoolset-8/root/usr/bin/g++", # or clang++ but you may need a version postfix
    file = M, sep = "
", append = TRUE)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #standard #requested #defined
ADD COMMENT
Topic
Name
2+7 =