AnsweredAssumed Answered

unique_ptr

Question asked by Robert Nguyen on May 19, 2015
Latest reply on May 21, 2015 by Carlos_Mendoza

Does arm-none-eabi gcc 4.7.3 support unique_ptr? I got compile error: error: 'unique_ptr' in namespace 'std' does not name a type when trying to use it in MCU 10.6.

 

Below is my c++ compiler flags:

COMPILER_PATH=c:/freescale/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/;c:/freescale/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/;c:/freescale/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/bin/

LIBRARY_PATH=c:/freescale/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/armv7e-m/;c:/freescale/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/armv7e-m/;c:/freescale/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../arm-none-eabi/lib/armv7e-m/;c:/freescale/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/;c:/freescale/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/;c:/freescale/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/;c:/freescale/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../arm-none-eabi/lib/

COLLECT_GCC_OPTIONS='-mcpu=cortex-m4' '-mthumb' '-mfloat-abi=soft' '-g3' '-gdwarf-2' '-gstrict-dwarf' '-nostdinc' '-nostdinc++'  '-D' '__STDC_LIMIT_MACROS' '-D' '_EWL_NO_RTTI' '-D' '__GXX_EXPERIMENTAL_CXX0X__'

Outcomes