In the meantime I searched for the solution on GNU GCC forum.
Apparently the reason of error on the instruction
#include <vector>
is the extention of my source file (which is .c).
So, if my comprehension is correct, for .c files it's a "C compiler" that is used, whereas for .cpp files the "C++ compiler" is used.
I created simple .cpp file with only 1 line:
#include <vector>
and tried to compile it.
Here is Code::Block output:
-------------- Build: Debug in link_v1 (compiler: GNU GCC Compiler for ARM)---------------
Running command: make.exe -f Makefile
using saved target 'cc2538dk'
g++ -mcpu=cortex-m3 -mthumb -nostartfiles -T obj_cc2538dk/cc2538.ld -Wl,-Map=test_cpp,--cref,--no-warn-mismatch -Wl,--gc-sections test_cpp.cpp -o test_cpp
make: g++: Command not found
make: *** [test_cpp] Error 127
<builtin>: recipe for target 'test_cpp' failed
Process terminated with status 2 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
If my comprehension is correct, the Code::Block didn't find the correct executable for C++ compiler.
In the log here above it uses g++ as executable, whereas it the compiler settings I specified arm-none-eabi-g++.exe !!!
Where is a problem ?
Regards
Pavel.