home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / std / c / 3401 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.3 KB  |  39 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!taumet!steve
  3. From: steve@taumet.com (Steve Clamage)
  4. Subject: Re: Libraries specified in source?
  5. Message-ID: <1993Jan22.201020.13541@taumet.com>
  6. Organization: TauMetric Corporation
  7. References: <1993Jan21.182949.29796@cronkite.ocis.temple.edu>
  8. Date: Fri, 22 Jan 1993 20:10:20 GMT
  9. Lines: 28
  10.  
  11. ray@astro.ocis.temple.edu (Ray Lauff) writes:
  12.  
  13. >... but why not just have a line in the main program such as
  14.  
  15. >#library "/lib/libc.a"
  16.  
  17. >which would then alert the linker that that library will be 
  18. >required.  ...
  19.  
  20. >It seems to me this would be a reasonable extension to C, since
  21. >just about every c program requires some type of library that's
  22. >not automagically provided.  Does this make sense to anyone 
  23. >else?  Would it not be a consideration for the language?
  24.  
  25. If you mean to propose adding this to the Standard, I doubt it would
  26. happen.  This assumes that implementations use a linker and libraries,
  27. neither of which is required.
  28.  
  29. The C Standard specifies what constitues a legal program and the
  30. meaning of legal programs.
  31.  
  32. There has to be some way to get from source code to an execution
  33. of the program, and the implementation has to tell you how to do that.
  34. Whether there is a compiler or a linker or libraries involved is a
  35. subject separate from the C language.
  36. -- 
  37.  
  38. Steve Clamage, TauMetric Corp, steve@taumet.com
  39.