root@didsgn.UUCP (didsgn) (04/06/89)
Has anyone seen this problem? I get a variable not declared when compiling the library routine Sample.cc. I have a SYSV system under CRDS UNOS running GCC version 1.34 and g++ version 1.34.1 and g++ library version 1.34.0. The config.h and etc. files are setup similarly to a Sun 3 system. The g++ was compiled by GCC and with the symbols SOS and ESKIT defined. I tried g++ without these symbols but got the same results. -Allan G. Schrum Digital Design, Inc. ...!gatech!rebel!didsgn!{root|gnu|allan} gcc -v gcc version 1.34 g++ -v g++ version 1.34.1 make (cd src; make -b GXX=g++ CC=gnugcc) g++ -g -O -fchar-charconst -I../g++-include -I.. -c stream.cc g++ -g -O -fchar-charconst -I../g++-include -I.. -c PlotFile.cc g++ -g -O -fchar-charconst -I../g++-include -I.. -c SFile.cc g++ -g -O -fchar-charconst -I../g++-include -I.. -c Sample.cc In method int SampleStatistic::samples (): ../g++-include/SampleStatistic.h:37: `maxV' was not declared (first use this function) ../g++-include/SampleStatistic.h:37: (Each undeclared identifier is reported only once ../g++-include/SampleStatistic.h:37: for each function it appears in.) ../g++-include/SampleStatistic.h:37: parse error at end of input Sample.cc:30: parse error before `{' At top level: Sample.cc:35: `default_SampleStatistic_error_handler' undeclared, outside of functions In method int SampleHistogram::inBucket (int): ../g++-include/SampleHistogram.h:58: parse error at end of input ../g++-include/SampleHistogram.h:59: warning: Old style parameter specification frowned upon ../g++-include/SampleHistogram.h:61: Unterminated string ../g++-include/SampleHistogram.h:52: parse error at end of input At top level: ../g++-include/SampleHistogram.h:55: Unterminated string *** Error code 1 Stop. *** Error code 1 Stop.