From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22883 invoked by alias); 13 Aug 2008 19:47:48 -0000 Received: (qmail 22862 invoked by uid 22791); 13 Aug 2008 19:47:47 -0000 X-Spam-Check-By: sourceware.org Received: from sd-green-bigip-74.dreamhost.com (HELO spunkymail-a19.g.dreamhost.com) (208.97.132.74) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 13 Aug 2008 19:47:09 +0000 Received: from ATHLON64 (unknown [92.113.76.58]) by spunkymail-a19.g.dreamhost.com (Postfix) with ESMTP id 29DE712104 for ; Wed, 13 Aug 2008 12:47:08 -0700 (PDT) Date: Wed, 13 Aug 2008 19:58:00 -0000 From: Kirill Pekarov X-Mailer: The Bat! (v4.0.14) Professional Reply-To: kirill_pekarov Message-ID: <1266807070.20080813224632@valentina-db.com> To: gcc-help@gcc.gnu.org Subject: Lazy linking. MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00133.txt.bz2 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 executab= le also should work without this shared when the shared is absent, but here I've st= uck. A whole day I can't resolve it. When I run executable with absent shared library - I've error message at start:=20 "./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.=20 man ld, info gcc and Mr. Google can't help me. Thanks for any help! Debian Etch. GCC 4.1.2 --=20 Best regards,=20