home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / aix / 11721 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1023 b 

  1. Path: sparky!uunet!vnet.ibm.com
  2. From: russotto@vnet.ibm.com (Matthew T. Russotto)
  3. Message-ID: <19921119.060317.13@almaden.ibm.com>
  4. Date: Thu, 19 Nov 92 09:00:30 EST
  5. Newsgroups: comp.unix.aix
  6. Subject: Re: warnings from 'ld' when building shared lib
  7. Disclaimer: This posting represents the poster's views, not those of IBM
  8. News-Software: UReply 3.0
  9. References: <478@bertha.HyperDesk.com>
  10. Lines: 17
  11.  
  12. In <478@bertha.HyperDesk.com> Andy Dennie writes:
  13. >I'm trying to create a shared library from a bunch of .o's and some
  14. >.a's.  When I do, I get a bunch of warnings like:
  15. >
  16. >0706-223 WARNING:  Local definition of 'foo' replaced by import version.
  17. >
  18. >My link line looks like:
  19. >
  20. >  ld -bM:SRE -o shared_lib foo1.o foo2.o libfoo3.a libfoo4.a -E foo.exp
  21. >
  22. >The file foo.exp contains the symbols the shared library is to export.
  23. >The function 'foo' I'm getting the warning about is not one of them, if
  24. >that matters.  Can anybody explain what is going on here?  Thanks.
  25.  
  26.  
  27. You need the 'suppress annoying warnings' option, "-bh:4".
  28.  
  29.