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

This commit is contained in:
Davis King 2016-09-06 11:41:50 -04:00
parent a6dd7d82f2
commit 8061c31acf
1 changed files with 8 additions and 0 deletions

View File

@ -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