From owner-bug-octave at bevo dot che dot wisc dot edu Tue Dec 10 19:24:36 1996 Subject: C++ Compile failure on Sun-SPARC-Solaris2.5 From: "John W. Eaton" To: "Dutt, Vinayak, Ph.D." (Vinayak Dutt) Cc: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 10 Dec 1996 19:24:09 -0600 On 10-Dec-1996, Vinayak Dutt wrote: : The compile fails in the liboctave directory when it tries to : compile CollocWt.cc file. : Here's the except from make output: : : make[2]: Leaving directory `/home/usdata/vdp/ftp/octave-2.0/libcruft' : echo making all in liboctave : making all in liboctave : cd liboctave ; /opt/FSFgcc/bin/make all : make[2]: Entering directory `/home/usdata/vdp/ftp/octave-2.0/liboctave' : c++ -c -I. -I.. -I../liboctave -I../src -I../glob -I../libcruft/misc -I/opt/FSFlibg++/lib/g++-include -DHAVE_CONFIG_H -fno-implicit-templates -O2 -Wall CollocWt.cc : In file included from /opt/FSFlibg++/lib/g++-include/std/bastring.h:35, : from /opt/FSFlibg++/lib/g++-include/std/string.h:6, : from /opt/FSFlibg++/lib/g++-include/string:5, : from mach-info.h:26, : from data-conv.h:28, : from dMatrix.h:35, : from CollocWt.h:32, : from CollocWt.cc:33: : /opt/FSFlibg++/lib/g++-include/std/stddef.h:15: parse error before `::' : make[2]: *** [CollocWt.o] Error 1 : make[2]: Leaving directory `/home/usdata/vdp/ftp/octave-2.0/liboctave' : make[1]: *** [liboctave] Error 2 : make[1]: Leaving directory `/home/usdata/vdp/ftp/octave-2.0' : make: *** [all] Error 2 I think you can fix this by editing Octave's config.h file and deleting the line #define NPOS string::npos Thanks, jwe