home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!destroyer!sol.ctr.columbia.edu!eff!world!wdm
- From: wdm@world.std.com (Wayne D Michael)
- Subject: Re: Where is regcmp on HP 9000/750?
- Message-ID: <Bx9HB5.My9@world.std.com>
- Keywords: regular expression HP
- Organization: The World, via PC Pursuit from Fullerton CA
- References: <Bx7x2M.Dzz@world.std.com>
- Date: Thu, 5 Nov 1992 21:06:40 GMT
- Lines: 41
-
- Thanks for answering my question everyone, here is one of the answers
- I recieved via. e-mail.
-
- =====================================================
-
- ) /lib/dld.sl: Unresolved symbol: regcmp(code) from /usr/lib/Motif1.1/libXm.sl
-
- from man regcmp:
-
- regcmp and regex are kept in /lib/libPW.a, and are linked by using the
- -lc and -lPW options to the ld or cc command. See WARNINGS below.
-
- ...
-
- 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).
-
- User programs that use regcmp might run out of memory if regcmp is
- called iteratively without freeing vectors that are no longer
- required.
-
-
- -andre.
-
- ---
- Andre Srinivasan : Disclaimer:
- Neurophysiology : If my employer knew that I expressed opinions, not
- Children's Hosp. : only would they disavow knowledge that I had them,
- andre@cs.pitt.edu : but they would deny that I existed, just in case.
-
- --
- Wayne Michael
- wdm@world.std.com
-