Path: utzoo!utgpu!water!watmath!clyde!rutgers!gatech!hao!ames!amdcad!sun!plx!slvblc!dick From: dick@slvblc.UUCP (Dick Flanagan) Newsgroups: comp.sys.ibm.pc Subject: Re: compiling PROFF (from comp.binaries.ibm.pc) Summary: rename PROFF's remove() functions Message-ID: <472@slvblc.UUCP> Date: 12 Feb 88 20:54:29 GMT References: <1353@vu-vlsi.UUCP> Sender: uupc@slvblc.UUCP Reply-To: dick@slvblc.UUCP (Dick Flanagan) Organization: SLV Systems Group, Ben Lomond, CA Lines: 30 Disclaimer: none In article <1353@vu-vlsi.UUCP> 164485913@excalibur.UUCP (Mark Schaffer) writes: > Has anyone tried compiling the PROFF program (recently posted in Comp.binaries. > ibm.pc) with Turbo C? There seems to be a problem with the remove function in > the lookup.c file (as well as the look.c file). The following is what TC says > when compiling lookup.c. > > Wrong number of arguments in call of 'remove' > > Is this happening with people with other compilers, or is this some stupid > quirk with TC? Both look.c and lookup.c contain functions called remove(). Unfortunately, remove() is a common function that is contained in the TC libraries and is defined in their stdio.h and io.h include files. So TC thinks you are implementing _its_ remove() function and complains when it doesn't see the argument format _its_ remove() should have. The easiest thing to do is rename the proff remove() functions (and their one reference in pxxparse.c) to something else. I did this and it all compiled and linked just fine under MS C 4.0. (For an ostensibly portable product, it generated far more warnings than it should have, but, none the less, worked fine on my system.) Dick -- Dick Flanagan, W6OLD GEnie: FLANAGAN UUCP: ...!ucbvax!ucscc!slvblc!dick Voice: +1 408 336 3481 INTERNET: slvblc!dick@ucscc.UCSC.EDU LORAN: N037 05.5 W122 05.2 USPO: PO Box 155, Ben Lomond, CA 95005