This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Help Needed: How to overwrite library functions.


Hi,
I have this issue where i have an archive, whose member
"1.o" contains functions named A(), B(), C().
Now, i want to write a module, in which i want to use A() , BUT
overwrite B() and C() and YET link both "1.o" and my own module
together with rest of the system.

i.e
1.o contains A(), B() and C()
say 2.o contains my_A(), B(), C(), where
 my_A()
 {
    /*do something*/;
    A();			=> linked from 1.o
 }

Thanks for your time and help.
Regards,
Venkat
Worry about chances you miss when you don't even try.
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]