From help-octave-request Tue Sep 21 07:17:30 1993 Subject: compilation problem on sunos-4.1.x From: akgul at bilkent dot edu dot tr (Mustafa Akgul) To: help-octave Date: Tue, 21 Sep 93 15:17:35 +0300 Hello, I have compilations problem in /src/f-balance.cc; via tree-const.h; using gcc-2.4.5, libg++-2.4, gmake 3.67, bison 1.22, flex-2.3.8 It 4.1.3 and 4.1.1 I got the same result. Part of log is as follows: firat AKGUL [78] octave-0.74/src > gmake Making defaults.h from defaults.h.in... defaults.h is unchanged g++ -c -I. -I./../liboctave -I./../dld -I./.. -I. -I../liboctave -I../dld -I.. -DNPSOL_MISSING=1 -DQPSOL_MISSING=1 -DFSQP_MISSING=1 -DHAVE_ALLOCA_H=1 -DF77_APPEND_UNDERSCORE=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DDIRENT=1 -DRETSIGTYPE=void -DHAVE_TERMIO_H=1 -DHAVE_LIBM=1 -DHAVE_FINITE=1 -DHAVE_ISNAN=1 -DHAVE_ISINF=1 -O -Wall f-balance.cc In file included from f-balance.cc:32: tree-const.h:501: `Mapper_fcn' was not declared in this scope tree-const.h:501: `m_fcn' was not declared in this scope tree-const.h:501: parse error before `;' tree-const.h:714: `Mapper_fcn' was not declared in this scope tree-const.h:714: `m_fcn' was not declared in this scope tree-const.h:715: parse error before `{' tree-const.h: In method `class tree_constant tree_constant::mapper (...)': tree-const.h:715: `m_fcn' undeclared (first use this function) tree-const.h:715: (Each undeclared identifier is reported only once tree-const.h:715: for each function it appears in.) tree-const.h:715: `print' undeclared (first use this function) tree-const.h:715: warning: control reaches end of non-void function f-balance.cc: In function `class tree_constant* balance (class tree_constant*, int, int)': f-balance.cc:278: warning: control reaches end of non-void function gmake: *** [f-balance.o] Error 1 firat AKGUL [79] octave-0.74/src > Any help is appreciated. Regards