home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / std / c / 3414 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.0 KB

  1. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!escargot!goanna!ok
  2. From: ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe)
  3. Newsgroups: comp.std.c
  4. Subject: Re: Libraries specified in source?
  5. Message-ID: <16510@goanna.cs.rmit.oz.au>
  6. Date: 25 Jan 93 04:36:28 GMT
  7. References: <1993Jan21.182949.29796@cronkite.ocis.temple.edu>
  8. Organization: Comp Sci, RMIT, Melbourne, Australia
  9. Lines: 14
  10.  
  11. In article <1993Jan21.182949.29796@cronkite.ocis.temple.edu>, ray@astro.ocis.temple.edu (Ray Lauff) writes:
  12. > I have been programming in c for about a year or so now on various 
  13. > platforms and I often find myself wondering why standard C has
  14. > no mechanisms for embedding the libraries required for loading
  15. > into the code.
  16.  
  17. David Tilbrook had a utility, I think it was called "com".
  18. It just searched a file for special comments and made the compiler command
  19. line from them.  All you need is a convention:
  20.  
  21.     /*! Needs: -lm */
  22.  
  23. and a preprocessor which can locate such comments and do The Right Thing (TM)
  24. with them.  (dt's utility didn't go this far.) 
  25.