From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fcc2d88d867060e8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-21 03:48:48 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: load and use a ".o" file? Date: 21 Dec 2003 11:46:01 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <132Fb.3462$I02.2996@newssvr23.news.prodigy.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1072007328 16989 62.49.19.209 (21 Dec 2003 11:48:48 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sun, 21 Dec 2003 11:48:48 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:3661 Date: 2003-12-21T11:46:01+00:00 List-Id: lifetime n00b writes: > Well, not _precisely_, since a typical program using the .dll or .so > files needs to know about those files when it is compiled itself, > right? Maybe I wasn't clear on exactly what I need to do. The > program that needs to load and use the object file is *already > running* before the object file is compiled. This "main program" has > no prior information about the data or routines which may be in the > object file it is being told to load. man dlopen (assuming you're on a Unix box of course). What the equivalent for win32 is I don't know, but I'm sure there is one. -- Simon Wright 100% Ada, no bugs.