From 8e144e81d0ca80b62d17bfc9d7273e8273448b82 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck Date: Tue, 20 Jan 2026 20:29:04 +0100 Subject: [PATCH] Add C++11 standard flag to compiler flags Debian Trixie ships with arm-none-eabi-g++ v14.2.1 which defaults to c++17, this forces compilation with c++11 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 230af0c..c0ead5c 100644 --- a/Makefile +++ b/Makefile @@ -149,9 +149,9 @@ DEFS_EDA_446=-DUSE_STDPERIPH_DRIVER -DSTM32F4XX -DSTM32F446xx -DSTM32F4_EDA_446 # Build compiler flags CFLAGS_F4=-c $(MCFLAGS_F4) $(INCLUDES_F4) -CXXFLAGS_F4=-c $(MCFLAGS_F4) $(INCLUDES_F4) +CXXFLAGS_F4=-c $(MCFLAGS_F4) $(INCLUDES_F4) -std=c++11 CFLAGS_F7=-c $(MCFLAGS_F7) $(INCLUDES_F7) -CXXFLAGS_F7=-c $(MCFLAGS_F7) $(INCLUDES_F7) +CXXFLAGS_F7=-c $(MCFLAGS_F7) $(INCLUDES_F7) -std=c++11 # Linker flags LDFLAGS_F4 =-T stm32f4xx_link.ld $(MCFLAGS_F4) --specs=nosys.specs $(INCLUDES_LIBS_F4)