home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!sdd.hp.com!swrinde!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sunic!ugle.unit.no!ole
- From: ole@delab.sintef.no (Ole-Hjalmar Kristensen)
- Subject: Re: Dynamic Linking and Sun Sparcs, do they mix?
- In-Reply-To: maxtal@extro.ucc.su.OZ.AU's message of Wed, 27 Jan 1993 19:21:31 GMT
- Message-ID: <OLE.93Jan28115406@delab.sintef.no>
- Sender: news@ugle.unit.no (NetNews Administrator)
- Organization: SINTEF DELAB, Trondheim, Norway.
- References: <1993Jan23.043030.5358@aee.aee.com> <1993Jan25.084030.5548@cbfsb.cb.att.com>
- <1993Jan27.192131.14505@ucc.su.OZ.AU>
- Date: 28 Jan 93 11:54:06
- Lines: 36
-
-
- >
- > Applications that require DLLS are those that do
- > RUN-TIME linkage and not just LOAD-TIME linkage. Load-time
- > linkage is just a convenience --- actually, sometimes an
- > inconvenience.
- >
- > RUN-TIME linkage is different. Consider drawing
- > program. It has a class 'drawable'. Standard drawables
- > are Square and Circle and Line.
- >
- > Bored with these? Fine. Write your own DLL
- > classes for Oval, EiffelTower, Polygon, Fish. Put the
- > names of these in a text file and run the drawing
- > program.
- >
- > Presto: user defined shapes. Cant be
- > done without either RUN-TIME linkage or some sort
- > of interpreter.
- >
- > Can Unix's do this? If not, they cant really
- > do dynamic linkage at all, just code sharing.
- > Code sharing is certainly nice, but it is not functionally
- > equivalent to real dynamic linkage.
- >
- > --
- > ;----------------------------------------------------------------------
- > JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- > Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- > ;------ SCIENTIFIC AND ENGINEERING SOFTWARE ---ph: 2 799 8223 --------
- >
-
- SunOs can do it, sort of. The dlopen() and dlsym() system calls are
- interfaces to the dynamic linker. You specify the name of the library
- to dlopen, and dlsym returns the address binding of the symbol you
- give it as parameter.
-