From 3092fa68ee019b668deb8bed6603696d42f69a53 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Thu, 25 Oct 2018 08:37:52 +0200 Subject: [PATCH] fixed compilation for g++ and stay c++11 compatible --- tests/Makefile | 2 +- tests/bch_decoder_test.cc | 1 + tests/bch_regression_test.cc | 1 + tests/rs_decoder_test.cc | 1 + tests/rs_regression_test.cc | 1 + 5 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index c935b00..cba1143 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,5 +1,5 @@ -CXXFLAGS = -I.. -std=c++17 -W -Wall -Ofast -fno-exceptions -fno-rtti -march=native +CXXFLAGS = -I.. -std=c++11 -W -Wall -Ofast -fno-exceptions -fno-rtti -march=native CXX = clang++ -stdlib=libc++ #CXX = g++ diff --git a/tests/bch_decoder_test.cc b/tests/bch_decoder_test.cc index ac437db..8bcbdfb 100644 --- a/tests/bch_decoder_test.cc +++ b/tests/bch_decoder_test.cc @@ -7,6 +7,7 @@ Copyright 2018 Ahmet Inan #include #include #include +#include #include "bitman.hh" #include "galois_field.hh" #include "bose_chaudhuri_hocquenghem_decoder.hh" diff --git a/tests/bch_regression_test.cc b/tests/bch_regression_test.cc index 93efb61..393b5cd 100644 --- a/tests/bch_regression_test.cc +++ b/tests/bch_regression_test.cc @@ -7,6 +7,7 @@ Copyright 2018 Ahmet Inan #include #include #include +#include #include "galois_field.hh" #include "bose_chaudhuri_hocquenghem_encoder.hh" #include "bose_chaudhuri_hocquenghem_decoder.hh" diff --git a/tests/rs_decoder_test.cc b/tests/rs_decoder_test.cc index bb7e417..e4eec07 100644 --- a/tests/rs_decoder_test.cc +++ b/tests/rs_decoder_test.cc @@ -7,6 +7,7 @@ Copyright 2018 Ahmet Inan #include #include #include +#include #include "galois_field.hh" #include "reed_solomon_decoder.hh" diff --git a/tests/rs_regression_test.cc b/tests/rs_regression_test.cc index 944ef92..be91edb 100644 --- a/tests/rs_regression_test.cc +++ b/tests/rs_regression_test.cc @@ -7,6 +7,7 @@ Copyright 2018 Ahmet Inan #include #include #include +#include #include "galois_field.hh" #include "reed_solomon_encoder.hh" #include "reed_solomon_decoder.hh"