Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 3 months ago.
Including c++ standard libraries
I'm trying to compile an existing firmware (originally written for NUCLEO-F767 using visual studio / VisualGDB) to a GD32F307VG-mbed -board. The code has following lines:
#include <list> #include <unordered_map>
compiling stops at the second line with error "no such file or directory". The first line goes through well.
This seems like a very basic thing. The library should be available, no?
Thanks and BR!
1 Answer
5 years, 3 months ago.
unordered_map was only added in c++11. <map> should be available for all platforms but unordered_map will depend on the compiler and settings used.