How to call different functions with the same name

L

lanser

Hi Gurus,

I have two libraries, called libA and libB and I will create a driver
placed between them, look like following:
libA
|
driver
|
libB
There is a function reference in libA, named foo, so I should
implement it in driver.
But libB has also a function called foo implemented, and I can't let
libA call the foo in libB directly.
Since I compiled by GCC, I try to weaken the foo in libB and provide a
global foo in driver to be linked with libA.
The question is: to implement foo in driver, I have to call the foo in
libB for its functional, how can I do this???
I tried alias, but it doesn't work. libA always called the foo in libB
instead which in driver.

Any suggestion?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top