diff --git a/examples/Makefile.am b/examples/Makefile.am index b6d75f86..f0a0304e 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -5,7 +5,7 @@ if ! CPPUNIT_TEST AM_LDFLAGS = -L$(top_builddir)/src/.libs -lfinal -AM_CPPFLAGS = -I$(top_srcdir)/src/include -Wall -Werror +AM_CPPFLAGS = -I$(top_srcdir)/src/include -Wall -Werror -std=c++11 noinst_PROGRAMS = \ hello \ diff --git a/examples/Makefile.clang b/examples/Makefile.clang index 57564bec..dc2d5f28 100644 --- a/examples/Makefile.clang +++ b/examples/Makefile.clang @@ -9,7 +9,7 @@ BINDIR = /usr/local/bin CXX = clang++ SRCS = $(wildcard *.cpp) OBJS = $(SRCS:%.cpp=%) -CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) +CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++11 MAKEFILE = -f Makefile.clang LDFLAGS = -L../src -lfinal INCLUDES = -I../src/include -I/usr/include/final diff --git a/examples/Makefile.gcc b/examples/Makefile.gcc index 2b2bd5b9..94146f54 100644 --- a/examples/Makefile.gcc +++ b/examples/Makefile.gcc @@ -9,7 +9,7 @@ BINDIR = /usr/local/bin CXX = g++ SRCS = $(wildcard *.cpp) OBJS = $(SRCS:%.cpp=%) -CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) +CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++11 MAKEFILE = -f Makefile.gcc LDFLAGS = -L../src -lfinal INCLUDES = -I../src/include -I/usr/include/final diff --git a/src/Makefile.am b/src/Makefile.am index e1a89737..66424afb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2,7 +2,7 @@ # Makefile.am - The Final Cut library #---------------------------------------------------------------------- -AM_CPPFLAGS = -Iinclude -Wall -Werror -DCOMPILE_FINAL_CUT +AM_CPPFLAGS = -Iinclude -Wall -Werror -DCOMPILE_FINAL_CUT -std=c++11 SUBDIRS = . diff --git a/src/Makefile.clang b/src/Makefile.clang index 7d4b77c6..ac39e753 100644 --- a/src/Makefile.clang +++ b/src/Makefile.clang @@ -63,7 +63,7 @@ INCLUDE_HEADERS = \ # compiler parameter CXX = clang++ -CCXFLAGS = $(OPTIMIZE) $(PROFILE) -DCOMPILE_FINAL_CUT $(DEBUG) $(VER) $(GPM) -fexceptions +CCXFLAGS = $(OPTIMIZE) $(PROFILE) -DCOMPILE_FINAL_CUT $(DEBUG) $(VER) $(GPM) -fexceptions -std=c++11 MAKEFILE = -f Makefile.clang LDFLAGS = $(TERMCAP) -lgpm INCLUDES = -Iinclude diff --git a/src/Makefile.gcc b/src/Makefile.gcc index 21d3be9c..374ca5e4 100644 --- a/src/Makefile.gcc +++ b/src/Makefile.gcc @@ -63,7 +63,7 @@ INCLUDE_HEADERS = \ # compiler parameter CXX = g++ -CCXFLAGS = $(OPTIMIZE) $(PROFILE) -DCOMPILE_FINAL_CUT $(DEBUG) $(VER) $(GPM) -fexceptions +CCXFLAGS = $(OPTIMIZE) $(PROFILE) -DCOMPILE_FINAL_CUT $(DEBUG) $(VER) $(GPM) -fexceptions -std=c++11 MAKEFILE = -f Makefile.gcc LDFLAGS = $(TERMCAP) -lgpm INCLUDES = -Iinclude diff --git a/src/include/final/fobject.h b/src/include/final/fobject.h index cb40ff40..7884238b 100644 --- a/src/include/final/fobject.h +++ b/src/include/final/fobject.h @@ -37,8 +37,8 @@ #if !defined (__cplusplus) #error "You need a C++ compiler like g++ or clang++" -#elif __cplusplus > 1 && __cplusplus < 199711L - #error "Your C++ compiler does not support the C++98 standard!" +#elif __cplusplus > 1 && __cplusplus < 201103 + #error "Your C++ compiler does not support the C++11 standard!" #endif #include // need for gettimeofday diff --git a/test/Makefile.am b/test/Makefile.am index 7908c851..6cbcb314 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -4,7 +4,7 @@ if CPPUNIT_TEST AM_LDFLAGS = -L$(top_builddir)/src/.libs -lfinal $(CPPUNIT_LIBS) -AM_CPPFLAGS = -I$(top_srcdir)/src/include -Wall -Werror +AM_CPPFLAGS = -I$(top_srcdir)/src/include -Wall -Werror -std=c++11 noinst_PROGRAMS = \ fobject_test \ diff --git a/test/Makefile.clang b/test/Makefile.clang index 5eef4ebc..d97d5c20 100644 --- a/test/Makefile.clang +++ b/test/Makefile.clang @@ -9,7 +9,7 @@ BINDIR = /usr/local/bin CXX = clang++ SRCS = $(wildcard *.cpp) OBJS = $(SRCS:%.cpp=%) -CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) +CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++11 MAKEFILE = -f Makefile.clang LDFLAGS = -L../src -lfinal -lcppunit -ldl INCLUDES = -I. -I../src/include -I/usr/include/final diff --git a/test/Makefile.gcc b/test/Makefile.gcc index 9b502e44..d650dc5d 100644 --- a/test/Makefile.gcc +++ b/test/Makefile.gcc @@ -9,7 +9,7 @@ BINDIR = /usr/local/bin CXX = g++ SRCS = $(wildcard *.cpp) OBJS = $(SRCS:%.cpp=%) -CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) +CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++11 MAKEFILE = -f Makefile.gcc LDFLAGS = -L../src -lfinal -lcppunit -ldl INCLUDES = -I. -I../src/include -I/usr/include/final