- static linked functions in shared library
- Posted by Yingjian Zhan on January 12th, 2007
Let's consider a shared library libfoo.so statically linked c library
containing such routine:
void foo ( )
{
printf ( "foo...\n" );
}
A statically linked program using dlopen to load the shared library and then
call foo. here's the question.
which printf routine will be called when call foo ? I guess the
statically linked printf in the shared library. But I'm not sure about that.
Could somebody explains it and fPIC option to me? thx a lot!!
Similar Posts
- Help - Calling KdPrint or DbgPrint from linked .asm library (Drivers) by Skywing [MVP]
- Shared ipod - Shared PC - Shared Music Library - Multiple Users (Audio, MP3 & Music) by Kent Smith
- Library for time.h Functions (Windows CE) by Isr Gish
- Re-exporting functions from dynamically linked DLL (Development Resources) by Kevin Crosbie
- Can Matlab functions be linked with C source (Programming) by Atri Mandal

