Menu

#9 g++3.3 fails to compile ddd-3.3.8 in PannedGE.C

closed-fixed
nobody
None
5
2004-02-12
2004-02-11
alexmalk
No

My gcc spec is
line:/tmp/soft/ddd-3.3.8> gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang
--prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3
--enable-shared --with-system-zlib --enable-nls
--without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-debug
--enable-java-gc=boehm --enable-java-awt=xlib
--enable-objc-gc
i386-linux
Thread model: posix
gcc version 3.3 (Debian)

Problem: after
./configure --prefix=$HOME/usr/local
and the subsequent
make
he told after some work
...
g++-3.3 -DHAVE_CONFIG_H -I. -I. -I. -I./.. -isystem
/home/alexmalk/usr/local/include -isystem
/usr/X11R6/include -DNDEBUG -O2 -g -Wall -W
-trigraphs -c -o HintGraphN.o `test -f 'HintGraphN.C'
|| echo './'`HintGraphN.C
source='LineGraphE.C' object='LineGraphE.o' libtool=no \ depfile='.deps/LineGraphE.Po'
tmpdepfile='.deps/LineGraphE.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ g++-3.3 -DHAVE_CONFIG_H -I. -I. -I. -I./.. -isystem
/home/alexmalk/usr/local/include -isystem
/usr/X11R6/include -DNDEBUG -O2 -g -Wall -W
-trigraphs -c -o LineGraphE.o `test -f 'LineGraphE.C'
|| echo './'`LineGraphE.C
source='LineGESI.C' object='LineGESI.o' libtool=no \ depfile='.deps/LineGESI.Po'
tmpdepfile='.deps/LineGESI.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ g++-3.3 -DHAVE_CONFIG_H -I. -I. -I. -I./.. -isystem
/home/alexmalk/usr/local/include -isystem
/usr/X11R6/include -DNDEBUG -O2 -g -Wall -W
-trigraphs -c -o LineGESI.o `test -f 'LineGESI.C' ||
echo './'`LineGESI.C
source='PannedGE.C' object='PannedGE.o' libtool=no \ depfile='.deps/PannedGE.Po'
tmpdepfile='.deps/PannedGE.TPo' \ depmode=gcc3 /bin/sh ../depcomp \ g++-3.3 -DHAVE_CONFIG_H -I. -I. -I. -I./.. -isystem
/home/alexmalk/usr/local/include -isystem
/usr/X11R6/include -DNDEBUG -O2 -g -Wall -W
-trigraphs -c -o PannedGE.o `test -f 'PannedGE.C' ||
echo './'`PannedGE.C
PannedGE.C: In function `_WidgetRec*
createPannedGraphEdit(_WidgetRec*, const
char*, Arg*, unsigned int)':
PannedGE.C:398: error: `cerr' undeclared (first use
this function)
PannedGE.C:398: error: (Each undeclared identifier is
reported only once for
each function it appears in.)
make[2]: *** [PannedGE.o] Error 1
make[2]: Leaving directory `/tmp/soft/ddd-3.3.8/ddd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/soft/ddd-3.3.8/ddd'
make: *** [all-recursive] Error 1

Temporary solution:
Locate in PannedGE.C the lines:
cerr<<...
And add "std::" before them:
std::cerr<<...
And run make again.

Regards,
Alex.

Discussion

  • Arnaud Desitter

    Arnaud Desitter - 2004-02-12
    • status: open --> closed-fixed
     
  • Arnaud Desitter

    Arnaud Desitter - 2004-02-12

    Logged In: YES
    user_id=566665

    Fixed in CVS repository on 2003/12/05.