Using only freestanding C++ standard library in hosted environment
I am writing a library in C++, and I want to make sure it works on bare metal too. To avoid accidentally using something that wouldn’t be available in bare metal, I want to compile my library using only a freestanding subset of C++ standard library.
Setup libstdc++ for a given gcc version
New to Linux here.
Already had gcc 11 and 12 on my ubuntu but compiled gcc-14 using following command: