home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / hp / 12677 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.4 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!network.ucsd.edu!sdcc12!xm9
  2. From: xm9@sdcc12.ucsd.edu (richard g. adair)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: Where is regcmp on HP 9000/750?
  5. Summary: Linking and Philosophy
  6. Keywords: Linking
  7. Message-ID: <40678@sdcc12.ucsd.edu>
  8. Date: 7 Nov 92 16:14:01 GMT
  9. References: <Bx7x2M.Dzz@world.std.com> <Bx91Bn.9vG@apollo.hp.com>
  10. Sender: news@sdcc12.ucsd.edu
  11. Organization: Arete Associates, San Diego
  12. Lines: 30
  13. Nntp-Posting-Host: sdcc12.ucsd.edu
  14.  
  15. In article <Bx91Bn.9vG@apollo.hp.com> web@apollo.HP.COM (Bill Bennett) writes:
  16. >From page 3-2 of the Rev 1.1 OSF/Motif Programmer's Guide:
  17. >   8  Link relevant libraries.    cc -o app app.c -lXm -lXt -lX11 -lPW
  18. >libPW.a contains regcmp; it must be linked if you use XmFileSelectionBox.
  19.  
  20. The number of UNIX linking options for some of the X programs are
  21. getting a bit silly.  A computer should be able to do these things
  22. for you.  How about changing the linker to search an index, instead
  23. of the direct library files.  Something like:
  24.  
  25.     {
  26.        Loop on unresolved functions
  27.         Linker needs sin finction
  28.         {
  29.         Search /usr/lib/library.index
  30.         Hmmm, sin is in -lm
  31.         Insert -lm automatically into path
  32.         Search for dependencies and auto insert required libraries
  33.         Warn user "#include <math.h>" not in source
  34.         }
  35.     }
  36.  
  37.     Sort libraries by order dependencies
  38.     Echo inserted -l options to user
  39.  
  40. Hmmm?
  41.  
  42. Tony Burzio
  43. Arete Associates
  44. San Diego, CA
  45.