Lazy linking.

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

 



Hi, All.

Please help me with lazy linking in the Linux.

I've ELF executable file with shared library.
The executable load the shared using dlopen() when it need it. The executable also
should work without this shared when the shared is absent, but here I've stuck. A whole day I can't resolve it.

When I run executable with absent shared library - I've error message
at start: 
"./myprog: error while loading shared libraries: libMyprog.so: Cannot open shared object file: No such file or directory".

The question is: What I should tell to the linker to avoid this message?
The executable should work with shared and without it. 
man ld, info gcc and Mr. Google can't help me.

Thanks for any help!

Debian Etch. GCC 4.1.2


-- 
Best regards, 




[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