I have to link two libraries, say A and B. Some of the files are common in both libraries.
So, I declare functions in library A inside a namespace, say abc.
So, in A and B,
When you use Extern "C" you are turning off name mangling so you lose the namespace information as C has no such concept. This causes a duplicate definition.