gcc-2.95.1: compiling error and fix for 'Hanoi.cxx'

Dieter Nützel nuetzel at kogs1.informatik.uni-hamburg.de
Wed Sep 29 14:50:49 EDT 1999


Hello,

I got another error during my compilation of VTK nightly (26.09.1999) on
Linux with gcc-2.95.1 (pgcc-2.95.1).

SunWave1>linuxinfo
Linux SunWave1 2.3.18ac9 #1 Mon Sep 27 17:07:45 MET 1999
One AMD Athlon (K7) 499MHz processor, 498.07 total bogomips, 255M RAM
System library 2.1.2 (glibc-2.1.2)


c++ -o Cube  -O -pipe -fomit-frame-pointer -funroll-loops -fPIC
-DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H
-I.  -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging
-DVTK_USE_IMAGING -I./../patented -DVTK_USE_PATENTED -I./../contrib
-DVTK_USE_CONTRIB   -DVTK_USE_OGLR   -I/usr/X11R6/include
-I./../../common -I./.. -I./../../patented
-I./../../imaging Cube.o  ../../patented/libVTKPatented.so
../../imaging/libVTKImaging.so ../../graphics/libVTKGraphics.so
../../common/libVTKCommon.so -L/usr/X11R6/lib /usr/lib/libGL.so -ldl
-lpthread \
-L/usr/X11R6/lib -lXext -lXt -lSM -lICE -lX11  -lm
c++  -O -pipe -fomit-frame-pointer -funroll-loops -fPIC
-DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H
-I.  -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging
-DVTK_USE_IMAGING -I./../patented -DVTK_USE_PATENTED -I./../contrib
-DVTK_USE_CONTRIB
  -DVTK_USE_OGLR   -I/usr/X11R6/include -I./../../common -I./..
-I./../../patented -I./../../imaging -c Hanoi.cxx -o Hanoi.o
Hanoi.cxx: In function `int main(int, char **)':
Hanoi.cxx:142: implicit declaration of function `int getopt(...)'
make: *** [Hanoi.o] Error 1
43.690u 1.380s 0:50.04 90.0%    0+0k 0+0io 15226pf+0w

Fix for this:

SunWave1>diff vtk.old/graphics/examplesCxx/Hanoi.cxx
vtk/graphics/examplesCxx/Hanoi.cxx
25a26
> #include <getopt.h>
51c52

Regards,
        Dieter

---
Dieter Nützel
Graduate Student, Computer Science

University of Hamburg
Department of Computer Science
Cognitive Systems Group
Vogt-Kölln-Straße 30
D-22527 Hamburg, Germany

email: Dieter Nützel <nuetzel at kogs.informatik.uni-hamburg.de>
@home: Dieter Nützel <dieter.nuetzel at arcormail.de>

_________________________________________________________

DRI (Direct Rendering Infrastructure) for Linux.
Because I do 3D medical visualization as my thesis.
_________________________________________________________



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list