Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!marc From: marc@hpfcdc.HP.COM (Marc 'Sphere' Sabatella) Newsgroups: comp.sys.hp Subject: Re: name clash in PW library in HP-UX 6.2 Message-ID: <5570120@hpfcdc.HP.COM> Date: 2 Feb 89 17:28:03 GMT References: <2836@mhres.mh.nl> Organization: HP Ft. Collins, Co. Lines: 34 / hpfcdc:comp.sys.hp / jv@mhres.mh.nl (Johan Vromans) / 6:34 am Jan 31, 1989 / >A program using the "rename" system call gets problems when >linked with -lPW: >... > $ cc t.c -lPW > ld: Undefined external - > _Error To be honest, I do not know what libPW.a is, but a little poking around and disassebly turned up a few things: "libPW.a" defines its own version of 'rename', which seems to do basically the same thing as the regular 'rename'. One difference is that some of the internal libPW.a routines called by 'rename' use a string variable called "Error" to construct error messages, as in if (link(p1,p2)) { sprintf(Error,"can't link `(%s)' to `(%s)' (%d)",p2,p1,0x70); fatal(Error); } Error does not seem to be defined anywhere in libPW.a; but if this is your only problem with libPW, you could try declaring char Error[80]; somewhere in your program. -------------- Marc Sabatella HP Colorado Language Lab marc%hpfcrt@hplabs.hp.com