I’ve started using boost and Qt recently. I would like to know if all the Boost libraries(headers) are wrapped into one namespace: Boost? Or are there some other namespaces as well?
Same question for Qt, it looks like the Qt libs do not have namespaces at all?
So I’ve started building Qt with these flags:
configure -shared -debug-and-release -ltcg -qtnamespace qt nmake
Is that OK?
Yes, Boost libraries generally put their stuff in
boostnamespace or subnamespaces of it. Some might define global symbols, but the documentation will tell you if that’s the case.Qt’s use of namespaces is very limited. It prefers to prefix all of its symbols with Q or Qt, although it uses
Qtnamespace for some identifiers, and maybe some others.