Switched to the language standard C++11

This commit is contained in:
Markus Gans 2018-12-02 14:13:52 +01:00
parent 635d7c691e
commit 4046f05a0c
10 changed files with 11 additions and 11 deletions

View File

@ -5,7 +5,7 @@
if ! CPPUNIT_TEST if ! CPPUNIT_TEST
AM_LDFLAGS = -L$(top_builddir)/src/.libs -lfinal 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 = \ noinst_PROGRAMS = \
hello \ hello \

View File

@ -9,7 +9,7 @@ BINDIR = /usr/local/bin
CXX = clang++ CXX = clang++
SRCS = $(wildcard *.cpp) SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:%.cpp=%) OBJS = $(SRCS:%.cpp=%)
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++11
MAKEFILE = -f Makefile.clang MAKEFILE = -f Makefile.clang
LDFLAGS = -L../src -lfinal LDFLAGS = -L../src -lfinal
INCLUDES = -I../src/include -I/usr/include/final INCLUDES = -I../src/include -I/usr/include/final

View File

@ -9,7 +9,7 @@ BINDIR = /usr/local/bin
CXX = g++ CXX = g++
SRCS = $(wildcard *.cpp) SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:%.cpp=%) OBJS = $(SRCS:%.cpp=%)
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++11
MAKEFILE = -f Makefile.gcc MAKEFILE = -f Makefile.gcc
LDFLAGS = -L../src -lfinal LDFLAGS = -L../src -lfinal
INCLUDES = -I../src/include -I/usr/include/final INCLUDES = -I../src/include -I/usr/include/final

View File

@ -2,7 +2,7 @@
# Makefile.am - The Final Cut library # 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 = . SUBDIRS = .

View File

@ -63,7 +63,7 @@ INCLUDE_HEADERS = \
# compiler parameter # compiler parameter
CXX = clang++ 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 MAKEFILE = -f Makefile.clang
LDFLAGS = $(TERMCAP) -lgpm LDFLAGS = $(TERMCAP) -lgpm
INCLUDES = -Iinclude INCLUDES = -Iinclude

View File

@ -63,7 +63,7 @@ INCLUDE_HEADERS = \
# compiler parameter # compiler parameter
CXX = g++ 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 MAKEFILE = -f Makefile.gcc
LDFLAGS = $(TERMCAP) -lgpm LDFLAGS = $(TERMCAP) -lgpm
INCLUDES = -Iinclude INCLUDES = -Iinclude

View File

@ -37,8 +37,8 @@
#if !defined (__cplusplus) #if !defined (__cplusplus)
#error "You need a C++ compiler like g++ or clang++" #error "You need a C++ compiler like g++ or clang++"
#elif __cplusplus > 1 && __cplusplus < 199711L #elif __cplusplus > 1 && __cplusplus < 201103
#error "Your C++ compiler does not support the C++98 standard!" #error "Your C++ compiler does not support the C++11 standard!"
#endif #endif
#include <sys/time.h> // need for gettimeofday #include <sys/time.h> // need for gettimeofday

View File

@ -4,7 +4,7 @@
if CPPUNIT_TEST if CPPUNIT_TEST
AM_LDFLAGS = -L$(top_builddir)/src/.libs -lfinal $(CPPUNIT_LIBS) 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 = \ noinst_PROGRAMS = \
fobject_test \ fobject_test \

View File

@ -9,7 +9,7 @@ BINDIR = /usr/local/bin
CXX = clang++ CXX = clang++
SRCS = $(wildcard *.cpp) SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:%.cpp=%) OBJS = $(SRCS:%.cpp=%)
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++11
MAKEFILE = -f Makefile.clang MAKEFILE = -f Makefile.clang
LDFLAGS = -L../src -lfinal -lcppunit -ldl LDFLAGS = -L../src -lfinal -lcppunit -ldl
INCLUDES = -I. -I../src/include -I/usr/include/final INCLUDES = -I. -I../src/include -I/usr/include/final

View File

@ -9,7 +9,7 @@ BINDIR = /usr/local/bin
CXX = g++ CXX = g++
SRCS = $(wildcard *.cpp) SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:%.cpp=%) OBJS = $(SRCS:%.cpp=%)
CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) CCXFLAGS = $(OPTIMIZE) $(PROFILE) $(DEBUG) -std=c++11
MAKEFILE = -f Makefile.gcc MAKEFILE = -f Makefile.gcc
LDFLAGS = -L../src -lfinal -lcppunit -ldl LDFLAGS = -L../src -lfinal -lcppunit -ldl
INCLUDES = -I. -I../src/include -I/usr/include/final INCLUDES = -I. -I../src/include -I/usr/include/final