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