home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / hp / 9803 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  762 b 

  1. Path: sparky!uunet!usc!cs.utexas.edu!ut-emx!tivoli!TIVOLI.COM!stuart
  2. From: stuart@TIVOLI.COM (Stuart Jarriel)
  3. Newsgroups: comp.sys.hp
  4. Subject: Linker selection of symbols from shared-libs
  5. Message-ID: <3270@tivoli.UUCP>
  6. Date: 26 Aug 92 17:23:10 GMT
  7. Sender: mikec@tivoli.UUCP
  8. Organization: Tivoli Systems, Inc
  9. Lines: 18
  10.  
  11. This is a question about the HPUX linker, and the order that 
  12. it resolves symbols.
  13.  
  14. Lets say I have a shared lib, libmine.sl, and there is a function in
  15. libmine.sl called write().
  16.  
  17. So I build my program with:
  18.  
  19. cc program.c -o program -lmine
  20.  
  21. will program use the write in libc.sl or in libmine.sl?
  22.  
  23. (actually, the answer is libc.sl)
  24.  
  25. Can I force the opposite behavior, so that my library can overwrite the
  26. symbols provided in libc.sl?
  27.  
  28. stuart
  29.