home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 20110 < prev    next >
Encoding:
Text File  |  1993-01-29  |  2.0 KB  |  50 lines

  1. Newsgroups: comp.lang.c++
  2. 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
  3. From: ole@delab.sintef.no (Ole-Hjalmar Kristensen)
  4. Subject: Re: Dynamic Linking and Sun Sparcs, do they mix?
  5. In-Reply-To: maxtal@extro.ucc.su.OZ.AU's message of Wed, 27 Jan 1993 19:21:31 GMT
  6. Message-ID: <OLE.93Jan28115406@delab.sintef.no>
  7. Sender: news@ugle.unit.no (NetNews Administrator)
  8. Organization: SINTEF DELAB, Trondheim, Norway.
  9. References: <1993Jan23.043030.5358@aee.aee.com> <1993Jan25.084030.5548@cbfsb.cb.att.com>
  10.     <1993Jan27.192131.14505@ucc.su.OZ.AU>
  11. Date: 28 Jan 93 11:54:06
  12. Lines: 36
  13.  
  14.  
  15. >     Applications that require DLLS are those that do
  16. > RUN-TIME linkage and not just LOAD-TIME linkage. Load-time
  17. > linkage is just a convenience --- actually, sometimes an
  18. > inconvenience.
  19. >     RUN-TIME linkage is different. Consider drawing
  20. > program. It has a class 'drawable'. Standard drawables
  21. > are Square and Circle and Line.
  22. >     Bored with these? Fine. Write your own DLL
  23. > classes for Oval, EiffelTower, Polygon, Fish. Put the
  24. > names of these in a text file and run the drawing
  25. > program.
  26. >     Presto: user defined shapes. Cant be
  27. > done without either RUN-TIME linkage or some sort
  28. > of interpreter.
  29. >     Can Unix's do this? If not, they cant really
  30. > do dynamic linkage at all, just code sharing. 
  31. > Code sharing is certainly nice, but it is not functionally
  32. > equivalent to real dynamic linkage.
  33. > -- 
  34. > ;----------------------------------------------------------------------
  35. >         JOHN (MAX) SKALLER,         maxtal@extro.ucc.su.oz.au
  36. >     Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
  37. > ;------ SCIENTIFIC AND ENGINEERING SOFTWARE ---ph:  2 799 8223 --------
  38.  
  39. SunOs can do it, sort of. The dlopen() and dlsym() system calls are
  40. interfaces to the dynamic linker. You specify the name of the library
  41. to dlopen, and dlsym returns the address binding of the symbol you
  42. give it as parameter. 
  43.