home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / next / programm / 7894 < prev    next >
Encoding:
Text File  |  1992-12-23  |  2.4 KB  |  67 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!gatech!concert!uvaarpa!murdoch!cds001.cebaf.gov!quarrie
  3. From: quarrie@cds001.cebaf.gov (David Quarrie)
  4. Subject: Re: Unresolved references when linking
  5. Message-ID: <1992Dec23.133650.1524@murdoch.acc.Virginia.EDU>
  6. Sender: usenet@murdoch.acc.Virginia.EDU
  7. Reply-To: quarrie@cds001.cebaf.gov (David Quarrie)
  8. Organization: CEBAF (Continuous Electron Beam Accelerator Facility)
  9. References: <1992Dec22.173036.7075@murdoch.acc.Virginia.EDU> <1h8f0hINNota@ni.umd.edu>
  10. Date: Wed, 23 Dec 1992 13:36:50 GMT
  11. Lines: 54
  12.  
  13. --
  14. In article <1h8f0hINNota@ni.umd.edu>, louie@sayshell.umd.edu (Louis A.
  15. Mamakos) writes:
  16. |>
  17. |>In article <1992Dec22.173036.7075@murdoch.acc.Virginia.EDU>
  18. |>quarrie@cds001.cebaf.gov (David Quarrie) writes:
  19. |>>--
  20. |>>I'm experiencing problems with unresolved references when using
  21. |>archives (.a).
  22. |>>This isn't just my own .a files, but also libX11.a for X-Windows. As
  23. |>far as
  24. |>>I can ascertain, it's a problem with global symbols instead of global
  25. |>routines
  26. |>>and can be illustrated by the following (I haven't actually done the
  27. |>following
  28. |>>since I'm not in front of my NeXT but I think it should illustrate
  29. |>the
  30. |>>problem):
  31. |>
  32. |>[...example omitted...]
  33. |>
  34. |>>Am I doing something stupid? Is it a case of RTFM? So far I've
  35. |>managed to force
  36. |>>linking to succeed by extracting the appropriate .o files from the
  37. |>library
  38. |>>and explicitly linking them, but I wouldn't have thought I should
  39. |>need to do 
  40. |>>that. 
  41. |>
  42. |>Stupid?  Well, I don't think so.  Yes, RTFM, specifically 'man
  43. |>ranlib'.  I think the -c option will do what you need.
  44. |>
  45. |>
  46. |>louie
  47. |>
  48.  
  49. Louie is, of course, absolutely correct. ranlib -c works just fine and does the
  50. job. There are times when I just HATE U**x and the fact that they all appear
  51. to be identical, but they're all just a little bit different. I think it's
  52. worse than using VAX/VMS and U**x, at least you know they're going to be
  53. different.
  54.  
  55. I'm also intrigued by the fact that the libX11.a supplied by Cub'X also needs
  56. this to be done. Is this a well known fact or am I the first person to try
  57. building an X application? -)
  58.  
  59. Thanks again to Louie...
  60.  
  61. -------------------------------------------------------------------------------
  62.     David Quarrie                    CEBAF MS 12H
  63.                             12000 Jefferson Ave
  64. Internet: quarrie@cebaf.gov                Newport News VA 23606
  65. DECnet  : cebaf::quarrie                Tel: (804) 249-7562
  66. BITNET  : quarrie@cebaf                    Fax: (804) 249-5800
  67.