I know, this question has been asked quite some times, however I can\'t find a solution for my problem.
I have the following situation:
A
/ \\
/
IMHO, this as nothing to do with the compiler flags whatsoever.
Declare your exception object as extern and don't provide any implementation anywhere except in your main binary.
This will force the linker (dynamic linker BTW) to use the only implementation that's possible.
No typeinfo is generated on extern definition only.