Commit 8061c31a authored by Davis King's avatar Davis King

Added a warning message to remind users to enable C++11 support.

parent a6dd7d82
......@@ -10,6 +10,14 @@
// this file contains miscellaneous stuff
// Give people who forget the -std=c++11 option a reminder
#if (defined(__GNUC__) && ((__GNUC__ >= 4 && __GNUC_MINOR__ >= 8) || (__GNUC__ > 4))) || \
(defined(__clang__) && ((__clang_major__ >= 3 && __clang_minor__ >= 4) || (__clang_major__ >= 3)))
#if __cplusplus < 201103
#error "Dlib requires C++11 support. Give your compiler the -std=c++11 option to enable it."
#endif
#endif
#ifdef _MSC_VER
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment