Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!mcvax!ukc!warwick!rlvd!news From: news@rlvd.UUCP Newsgroups: comp.lang.c++ Subject: Re: Cornell V1.2 Bug Report (1/5) Message-ID: <369@rlvd.UUCP> Date: Tue, 19-May-87 04:09:46 EDT Article-I.D.: rlvd.369 Posted: Tue May 19 04:09:46 1987 Date-Received: Thu, 21-May-87 06:13:53 EDT References: <909@batcomputer.tn.cornell.edu> Reply-To: cmc@pyr-a.UUCP (Chris Crampton) Distribution: world Organization: Rutherford Appleton Laboratory, Didcot, United Kingdom Lines: 44 In article <909@batcomputer.tn.cornell.edu> gdykes@tcgould.tn.cornell.edu.UUCP (Gene Dykes) writes: > >I have uncovered lots of bugs in C++, V1.2, and these are documented here >... >2) Fix CC, line 79, which won't work. (It won't work on GOULD Unix >either) If you don't patch it, compiling "x.c" will give you "x.c.o" >A quick and dirty fix is to replace "[cC]" with "c". I haven't yet tried >to fix it so that x.C will be recognized. It's probably trivial. > This problem is that the System V basename(1) (or at least the one we have in the att universe on our Pyramid) allows invocations of the form: basename filename .[cC] which has the expected (to sh(1) users) effect. The fix I came up with for the older basename(1) was to use: case $A in *.c) B=`basename $A .c` ;; *.C) B=`basename $A .C` ;; esac The only other change I had to make, apart from coping with odd flavours of UNIX and sh(1), was to add a -DBSD to the CC script when appropriate so that stdio.h comes out of cpp correctly. This may be mentioned in the documentation somewhere and I have just missed it. >... >Fortunately, C++ is well worth any troubles encountered in bringing it up, I agree. Also, over the last few years I have ported five or so versions of C++ to several different and tricky machines and I really appreciate the effort that Bjarne and his assistants have put into making this version so much more portable. Chris. ======================================================================= Chris M Crampton UK JANET: cmc@uk.ac.rl.vd Rutherford Appleton Labs, ARPA: @ucl-cs.arpa:cmc@vd.rl.ac.uk Didcot, OXON, U.K. UUCP: ..!mcvax!ukc!rlvd!cmc +44 235 21900 ext. 6756