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

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!utcsri!geac!lethe!druid!darcy
  3. From: darcy@druid.uucp (D'Arcy J.M. Cain)
  4. Subject: Re: Libraries specified in source?
  5. Message-ID: <1993Jan23.194202.20332@druid.uucp>
  6. Date: Sat, 23 Jan 1993 19:42:02 GMT
  7. References: <1993Jan21.182949.29796@cronkite.ocis.temple.edu>
  8. Organization: D'Arcy Cain Consulting
  9. Lines: 25
  10.  
  11. ray@astro.ocis.temple.edu (Ray Lauff) writes:
  12. >line of the compiler call.  Of course, using make files can
  13. >simplify the process, but why not just have a line in the 
  14. >main program such as
  15. >
  16. >#library "/lib/libc.a"
  17.  
  18. Two problems I can think of right off.  How do you know that the
  19. function you want is in that library on every system and how do
  20. you know that the libraries reside in that directory?
  21.  
  22. >which would then alert the linker that that library will be 
  23. >required.  DIGITAL supplies macro assembly programmers with
  24. >this capibility (.library directive), but they recommend
  25. >against using it since it makes moving library files a problem
  26. >since all the source code would need to be updated.  Perhaps
  27. >C could avoid this problem by putting them in an include file.
  28.  
  29. How is this easier than using the Make file?
  30.  
  31. -- 
  32. D'Arcy J.M. Cain (darcy@druid.com)  |
  33. D'Arcy Cain Consulting              |   There's no government
  34. Toronto, Ontario, Canada            |   like no government!
  35. +1 416 424 2871          DoD#0082   |
  36.