The situation is similar to this question on SO i.e. a function with the same name is defined differently in two separate .so libs which are then linked to the same executable where the function may be called. If the source files of the libs were being compiled together, the linker would have complained of something like "multiple definition ...". Is it possible to make the linker give some warning that the same function is defined in different .so libs being linked in the given scenario?
Asked
Active
Viewed 22 times
0
-
The short answer is no, it isn't possible. It isn't desirable, either. Consider the consequences if there was such a warning. – 1201ProgramAlarm Oct 24 '18 at 23:26
-
Well it may be useful for the case I just described. – random40154443 Oct 25 '18 at 12:34