Missing C library functions in INTERACTIVE 386/ix 2.0.2?

Daniel A. Glasser dag at gorgon.uucp
Sun Jan 6 14:15:28 AEST 1991


In article <10325 at bunny.GTE.COM> jdg0 at GTE.COM (Jose Diaz-Gonzalez) writes:
>My libc.a seems to be missing the functions defined in regcmp(3) (regcmp
>and regex).  I tried the shared library version with no luck. Nm does not 
>find it in either one.  Any ideas?  Cheers,

regex/regcmp are found in libPW.a (/lib/libPW.a) and not in libc.a (or
libc_s, for that matter.)  Tack "-lPW" after your other files in the
link stage, and you'll get them.

This is true for ISC 2.0.2 and ISC 2.2, and I suspect most other versions.
(I don't know about other flavors/versions of SysV, but that's where it
was in SysIII too.)

Many people will post "RTFM" responses, but actually, the ISC man pages
for regex and regcmp don't mention libPW at all.  (My sys-3 man pages
do list libPW.a in the FILES section.)

-- 
Daniel A. Glasser                       One of those things that goes
dag%gorgon at persoft.com                  "BUMP! (ouch!)" in the night.



More information about the Comp.unix.sysv386 mailing list