From e529d2a1f11ff9dac86251e21a0c90d4a58721e0 Mon Sep 17 00:00:00 2001 From: ribbon-otter <39717159+ribbon-otter@users.noreply.github.com> Date: Fri, 30 May 2025 05:08:55 -0700 Subject: [PATCH] docs: dlib requires c++14 (#3079) Co-authored-by: ribbon-otter --- docs/docs/compile.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/compile.xml b/docs/docs/compile.xml index 74ebcb7044..d0ef6fbc2e 100644 --- a/docs/docs/compile.xml +++ b/docs/docs/compile.xml @@ -53,7 +53,7 @@ cd build cmake .. cmake --build . --config Release -Note that you need to have a C++11 compiler installed on your system. There are free C++11 compilers +Note that you need to have a C++14 compiler installed on your system. There are free C++14 compilers for most operating systems. For example, Visual Studio is free on Windows and GCC is free and works well on Mac OS X and Linux systems. If you have multiple compilers/IDEs installed then you can tell CMake which one you want it to use via the -G option. @@ -119,7 +119,7 @@ tell CMake which one you want it to use via the -G option.

Compiling on Linux From Command Line

From within the examples folder, you can compile nearly all of the examples with a single command like so: -g++ -std=c++11 -O3 -I.. ../dlib/all/source.cpp -lpthread -lX11 example_program_name.cpp +g++ -std=c++14 -O3 -I.. ../dlib/all/source.cpp -lpthread -lX11 example_program_name.cpp On non-Linux systems like Solaris, you might have to link to other libraries. For example, I have seen systems