Say we are building an EXE which utilizes two
has two functions
Note: FunA() is there in both the libs !!!
, which is practical in the real world.
Now in our EXE's
, we have code like shown below:
The compiler will obviously throw a linker error saying that
is there in multiple objs.
If both these libs are of 3rd party, then we cannot compile them. How to resolve this ??
Simple. Use the linker option
Check this link: