home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sun / misc / 3296 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.sys.sun.misc
  2. Path: sparky!uunet!caen!hellgate.utah.edu!asylum.cs.utah.edu!allen
  3. From: allen%asylum.cs.utah.edu@cs.utah.edu (Allen Sanderson)
  4. Subject: Re: cc with -pg (profiling)
  5. Date: 23 Jul 92 10:13:46 MDT
  6. Message-ID: <1992Jul23.101347.26435@hellgate.utah.edu>
  7. Organization: University of Utah CS Dept
  8. References: <1992Jul22.135707.28712@hellgate.utah.edu> <1992Jul23.052334.28119@aristo.tau.ac.il>
  9. Lines: 23
  10.  
  11. >allen%asylum.cs.utah.edu@cs.utah.edu (Allen Sanderson) writes:
  12. >>
  13. >>I add in the -Bstatic to the linking portion of the code and behold
  14. >>lots of X11 routines (like _XDrawText) are not available in the static
  15. >>libraries.  The profiling will not let use a combination of static and
  16. >>dynamic libs either.
  17.  
  18.  
  19. shani@genius.tau.ac.il (Oren Shani) writes:
  20. >But wouldn't the -Bstatic flag load the dynamic libraries as if they where
  21. >static (i.e. in compile time) ?
  22.  
  23.  
  24. It would make sense that the dynamic libs should get loaded in
  25. statically but when I link the program dynamically (without the -pg
  26. option) I do not get and unresolved symbols.  If you look at yours
  27. libs you will see that there are two libs one with a *.so.#.# and
  28. *.sa.#.# one is static the other is dynamic.  The linker looks for
  29. appropriate lib based of the -B flag.
  30.  
  31. Allen R.Sanderson
  32.  
  33. allen@mirl.med.utah.edu
  34.