From b8e3a715d55af95367ab9113300d4e34c5e68cbb Mon Sep 17 00:00:00 2001 From: conrad Date: Sun, 12 Feb 2023 14:59:10 +1000 Subject: [PATCH] use C++11 as the min standard --- examples/README.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/README.txt b/examples/README.txt index 17e05ebd..f9e588d3 100644 --- a/examples/README.txt +++ b/examples/README.txt @@ -4,10 +4,10 @@ How to compile example1.cpp ** Linux and macOS ** If you have installed Armadillo via the CMake installer: - g++ example1.cpp -o example1 -std=c++14 -O2 -larmadillo + g++ example1.cpp -o example1 -std=c++11 -O2 -larmadillo Otherwise, if you want to use Armadillo without installation: - g++ example1.cpp -o example1 -std=c++14 -O2 -I /home/blah/armadillo-7.200.3/include -DARMA_DONT_USE_WRAPPER -lopenblas + g++ example1.cpp -o example1 -std=c++11 -O2 -I /home/blah/armadillo-7.200.3/include -DARMA_DONT_USE_WRAPPER -lopenblas The above command assumes that the armadillo archive was unpacked into /home/blah/ The command needs to be adjusted if the archive was unpacked into a different directory