2 years, 1 month 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

2 years, 1 month 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.