Re: force symbols for inline functions to be addressed at a particular library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Peter,

> Sorry to re-post, but does anyone have suggestions on how to force g++
> to link against libc for 'stat' symbol instead of using the weak
> symbol from my shared library?

I'd do it by changing the name of your symbol in your shared library from
stat to mystat.

Or do it dynamically by using dlopen and opening the libc.so explicitly and
accessing the stat routine explicitly.

HTH,
--Eljay



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux