[vtkusers] VTK4.0RC, ANSI-C++, HP-UX 11.00, IRIX 6.5

Gerndt, Andreas gerndt at rz.rwth-aachen.de
Wed Jan 30 11:28:49 EST 2002


 
-----BEGIN PGP SIGNED MESSAGE-----

Hi!

We use Win32, IRIX, SUNOS, LINUX and HP-UX. We want to integrate VTK
into
our own toolkit, which is completely written in ANSI-C++. Therefore,
we
try to compile VTK with VTK_USE_ANSI_STDLIB enabled.

Win32, LINUX and SUNOS seem to work well.

HP-UX has got problems with macros:

######################################################################
#########
/opt/aCC/bin/aCC -AA +DA1.1 +DS2.0 -DRWSTD_MULTI_THREAD -D_REENTRANT
- -I/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/Co
mmon
- -I/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/Re
ndering
- -I/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux
- -I/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/Co
mmon
- -I/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/Fi
ltering
- -I/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/Im
aging
- -I/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/Gr
aphics
- -I/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/IO
- -I/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/Ut
ilities/zlib
- -I/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/Ut
ilities/png
- -I/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/Ut
ilities/jpeg
- -I/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/Co
mmon/Testing/Cxx
- -I/opt/graphics/OpenGL/include
- -c
/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/Comm
on/vtkDataArray.cxx -o vtkDataArray.o

Error 403:
"/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/Com
mon/vtkDataArray.cxx", line 675 #
    Undeclared variable 'CopyTuples'. Perhaps 'CopyTuples' as in
"void CopyTuples(#1 *,#2 *,int,vtkIdList *)"
   
["/.tmp_mnt/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.hpux/Co
mmon/vtkDataArray.cxx", line 657] was intended.
        vtkTemplateMacro4(CopyTuples, input, (VTK_TT
*)output->GetVoidPo
        ^^^^^^^^^^^^^^^^^                                            
  
...(more errors)...
######################################################################
#########

IRIX don't like an operator+() :

######################################################################
#########
CC -LANG:std -g -O2
- -I/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix/IO
- -I/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix/Rendering 
- -I/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix 
- -I/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix/Common
- -I/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix/Filtering 
- -I/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix/Imaging
- -I/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix/Graphics
- -I/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix/IO 
- -I/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix/Utilities/z
lib 
- -I/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix/Utilities/p
ng
- -I/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix/Utilities/j
peg
- -I/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix/Common/Test
ing/Cxx
- -c
/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix/IO/vtkBMPRead
er.cxx -o vtkBMPReader.o

cc-1324 CC: ERROR File =
/rwthfs/rz/vr/p0/home/VR-Projekte/SOFTWARE/vtk/vtk4.irix/IO/vtkBMPRead
er.cxx, Line = 474
  More than one operator "+" matches the specified operands.

            Built-in operator "arithmetic + arithmetic" has an
overloading
                      ambiguity.
            Function symbol function
                     
"std::fpos<mbstate_t>::operator+(std::streamoff)" is
                      ambiguous by inheritance.
            The operand types are:  std::basic_istream<char,
                      std::char_traits<char>>::pos_type + long.
        self->GetFile()->seekg(self->GetFile()->tellg() +
streamSkip0, ios::beg);
                                                        ^
          detected during instantiation of "void
                    vtkBMPReaderUpdate2(vtkBMPReader *, vtkImageData
*, double
                    *)" 
...(more errors)...
######################################################################
#########

IRIX compiles the files without ANSI! However, HP-UX doesn't! Still
the same errror!

Is there anybody with experiences and solutions?

Bye - Andreas


- --
Andreas Gerndt (Dipl.-Inform.)
Competence Center for Virtual Reality and 3D-Visualization
Computing and Communication Center (CCC)
Aachen University of Technology (RWTH)
Seffenter Weg 23, D-52074 Aachen (Germany)
Office: (+49) 241 / 80 - 20355
Mobile: (+49) 151 / 1404 2596
Fax:    (+49) 241 / 80 - 22134
mailto:gerndt at rz.rwth-aachen.de
http://www.rz.rwth-aachen.de/vr/


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQEVAwUBPFgfY0rShAP/LaUrAQGTmAgArV9ZXio6Uo/WCpiY8FHKB/9kDIJI4I3R
pjK2MF0XAJabYRdDwCds0OxmQFoZSd16Bi0Z6FOnROBQGXxt4TJRRb8FL/MVPfEV
OyMqOimX/pyAyb1scK+r32xDWBT+nTsryGzWd8zI9yjZD+iT6JPDfLBv5UdSAyBN
Bwdfumy4mOEiAYuD/kS4Y1bm6mogya4PmiHF03Z/351QMtLj3s4Wi9esvsonZjlg
D1ZkOAfhJ8jB0i0vG1cql+hhaOQKrxtuOcO/7IweXa4AIhjluJNClatm2kA5Odbo
3XC7S/0QiMnZohtYjTGQ65Kk4XhxUdVrwMZHPW17YQibbMVR31JAEw==
=J78i
-----END PGP SIGNATURE-----



More information about the vtkusers mailing list