I want to Link two .so with each other. Scenario is : 1) A method(Ex. void fun() ) with same name are defined in both .so 2) suppose we are calling this method from first .so then call should go to method defined in 2nd .so
How is this possible?
// Module 2
#include <stdio.h>
void fun();
void fun()
{
printf(""from 2nd .so\n"");
}
// Module 1
#include <stdio.h>
void fun();
void fun()
{
printf("from 1st .so\n");
}
int main()
{
fun();
return 0;
}