Multiple definitions in the link phase is almost always caused by having code in header files but I'm not sure that's the case here.
Have a look at line 162 of xxx/DATASTRUCTURES/SET/set.h
and line 28 of xxx/misc.h
(post them here, with a few lines either side for context, for further help).
That appears to be where the conflict is, based on the messages you're getting. It may well be that your new stuff that you're interfacing with shares a type name with some of your current stuff.