From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25490 invoked by alias); 3 Sep 2004 18:14:57 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 25477 invoked from network); 3 Sep 2004 18:14:56 -0000 Received: from unknown (HELO boden.synopsys.com) (198.182.44.79) by sourceware.org with SMTP; 3 Sep 2004 18:14:56 -0000 Received: from mother.synopsys.com (mother.synopsys.com [146.225.100.171]) by boden.synopsys.com (Postfix) with ESMTP id 617EADB83; Fri, 3 Sep 2004 11:14:29 -0700 (PDT) Received: from piper.synopsys.com (localhost [127.0.0.1]) by mother.synopsys.com (8.9.1/8.9.1) with ESMTP id LAA29877; Fri, 3 Sep 2004 11:14:54 -0700 (PDT) Received: (from jbuck@localhost) by piper.synopsys.com (8.11.6/8.11.6) id i83IErt01411; Fri, 3 Sep 2004 11:14:53 -0700 X-Authentication-Warning: piper.synopsys.com: jbuck set sender to Joe.Buck@synopsys.com using -f Date: Fri, 03 Sep 2004 18:14:00 -0000 From: Joe Buck To: Jim Norris Cc: gcc@gcc.gnu.org Subject: Re: dynamic linking question Message-ID: <20040903111453.A343@synopsys.com> References: <49443.64.107.161.130.1094229426.squirrel@64.107.161.130> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <49443.64.107.161.130.1094229426.squirrel@64.107.161.130>; from fromfast@rainbarrel.com on Fri, Sep 03, 2004 at 12:37:06PM -0400 X-SW-Source: 2004-09/txt/msg00149.txt.bz2 On Fri, Sep 03, 2004 at 12:37:06PM -0400, Jim Norris wrote: > I'm trying to find documentation on how to dynamically link to a shared > object at run time. I found something that describes how to do it in C > using gcc but that's not exactly what I need. Wrong list. > I need to know the steps gcc takes to compile code to open the library, > get the address of the function from it's name, call the function, and > close the library. Is there a standard proceedure for dynamically linking > to a shared object? For Solaris, BSD, GNU/Linux, etc, type "man dlopen"