*BSD News Article 70092


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!inquo!bofh.dot!nntp.uio.no!Norway.EU.net!oslonett.no!sn.no!oslonett.no!sn.no!not-for-mail
From: oste@sn.no (Oddbjørn Steffensen)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: using the dynamic linker
Date: 4 Jun 1996 00:21:31 +0200
Organization: SN Internett
Lines: 19
Message-ID: <4ovohb$6g4@sinsen.sn.no>
References: <4ovo6p$682@sinsen.sn.no>
NNTP-Posting-Host: sinsen.sn.no
X-Newsreader: TIN [version 1.2 PL2]

[ sorry about the empty post, it was due to a misconfiguration ]

This isn't necessarily a pure FreeBSD question, but :

I'm using FreeBSD 2.1.0, and I'm trying to create a program
that dynamically loads functions from a shared object file
at runtime.

I think I'm using the dlopen call and friends correctly, but
I'm having problems with the gcc and ld command line options.
Currently, I'm using ld -Bshareable to create a shared object,
but I can't get gcc to wait binding the function call.

Can anyone please point me in the direction of documentation,
so that I can RTFM, or possibly some example code ?

Feel free to mail me, I'll post a summary, if interest.

-oddbjorn