This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

fatal error: 'array' file not found

Trying to use std::array in my project.

Getting error the file not found.

Code:

#include <array>
std::array<int, 3> myArray; // declare an integer array with length 3

I checked and the file array exists in : C:\Keil_v5\ARM\FUSAArmCompilerLTM\include\libcxx\array

Also, the file itself is configured to be c++.

Compiler control for file:

-xc++ -std=c++14 --target=arm-arm-none-eabi -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -c
-fno-rtti -funsigned-char -fno-exceptions

Misc:

-nostdlibinc -nostdlib -fno-builtin -ffp-mode=full

Config