home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / hp / 8606 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.2 KB

  1. From: spero@hpindda.cup.hp.com (Spero Koulouras)
  2. Date: Mon, 27 Jul 1992 22:21:36 GMT
  3. Subject: Re: -lPW causes problems building R5 on HP 9000/700s
  4. Message-ID: <4310267@hpindda.cup.hp.com>
  5. Organization: HP Information Networks, Cupertino, CA
  6. Path: sparky!uunet!usc!sdd.hp.com!hpscdc!cupnews0.cup.hp.com!hppad.waterloo.hp.com!hppad!hpfcso!hpcuhb!hpindda!spero
  7. Newsgroups: comp.sys.hp
  8. References: <1992Jul22.220419.9528@elroy.jpl.nasa.gov>
  9. Lines: 21
  10.  
  11. The following text was lifted from the man page for regex and discusses
  12. the proper cc invocation of -lPW ...
  13.  
  14. Regards,
  15.  
  16.   Spero Koulouras
  17.  
  18. -------------
  19.  
  20.  WARNINGS
  21.       regcmp() and regex() are kept in /lib/libPW.a.  Unfortunately,
  22.       /lib/libPW.a also contains some functions that have the same names as
  23.       functions contained in the default C library, /lib/libc.a.  To prevent
  24.       unexpected results due to these name conflicts, always search libc
  25.       before searching libPW.  This is done with the ld (or cc) command line
  26.       option sequence -lc -lPW which satisifies all standard C functions
  27.       from libc then searches libPW for the regcmp() and regex() functions
  28.       (there is also an implied -lc following the explicit -lPW to satisfy
  29.       any additional C functions required by regcmp() and regex()).
  30.  
  31.  
  32.