From owner-freebsd-questions Fri Feb 9 2:33:25 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 930B437B491 for ; Fri, 9 Feb 2001 02:33:08 -0800 (PST) Received: from alcides.host4u.net (alcides.host4u.net [216.71.64.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 157A56E2948 for ; Fri, 9 Feb 2001 02:33:08 -0800 (PST) Received: from test ([202.142.89.136]) by alcides.host4u.net (8.8.5/8.8.5) with SMTP id EAA20228 for ; Fri, 9 Feb 2001 04:21:23 -0600 From: "Satish Bhat" To: Subject: gcc 2.7 dynamic linking problem Date: Wed, 9 Feb 2000 04:09:08 +0530 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi everybody, I have a code written for Realserver which is meant to be dynamic library. I am using gcc2.7.2. The code uses stlport 4.0 for gcc. I have compiled the code with "fPIC" option and linking it with "shared" flag. The compilation process produces an "so" file, but when I try to load it thro realserver it gives me an error "Not a valid library". I wrote a test load program and that program also fails to load the library stating that "undefined symbol ". But the is nothing but a STL function! If I have the header file isn't that sufficient? rgds, Satish Bhat To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message