I have two source files: A.c and B.c
A.c has a function, call_me:
static int call_me();
void call_me_register()
{
register_call_me(call_me);
}
As you can see, call_me function is used as variable so it has a symbol of call_me in A.o
Now, I want to call this call_me function in B.c file.
static int call_me();
void call_call_me()
{
call_me();
}
If I try to link B.o, I've got an link error, that no such reference of call_me.
Here, the constraint is the following: I can not modify A.c for some reason. Is there a any to call 'call_me' in A.c in B.c?
register_call_me
is overloaded (but the more I look at it, the more it seems like a mistake). – paddy