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