Namespacing headers in C++ is as easy as wrapping the header in
namespace SomeNs { ... }
Namespacing the corresponding the object file or static library wasn't straightforward because of name mangling, but I seem to have found a way regardless
On the other hand, plain C object files / static libraries should be even easier to namespace because there's already
objcopy --prefix-symbols
and C
doesn't mangle symbols, but What is the objcopy --prefix-symbols
counterpart for header files?