Is there a way for GCC to produce a warning while linking libraries that contain classes with the same name? For example
Port.h
class Port {
I don't see any options to do what you want either. Maybe think laterally and use a code documentation tool like Doxygen to generate documentation for all your classes and manually look for duplicates