[vtkusers] Compiling VTK on AIX 4.3 with xlC
John Norris
jnorris at mcs.anl.gov
Thu Feb 27 16:45:07 EST 2003
Hi,
I'm having trouble compiling nightly VTK under AIX using the native
compilers. One example is with vtkMath, in particular the function template
vtkDeterminant3x3 defined in vtkMath.h. When compiling vtkMath.cxx, I get
the error shown below. If I change line 566 in vtkMath.h from
static inline double vtkDeterminant3x3(T A[3][3])
to
inline double vtkDeterminant3x3(T A[3][3])
then it compiles fine. I don't really want to search through VTK looking for
all of the static inline functions, so I'm hoping that someone has experience
with this and knows of a flag for xlC that'll fix this for me. :^)
Thanks,
John
"/home/ibmsp/jnorris/DEBUG/src/VTK_noGL/Common/vtkMath.cxx", line 1736.10: 1540-0274 (S) The name lookup for "vtkDeterminant3x3" did not find a declaration.
"/home/ibmsp/jnorris/DEBUG/src/VTK_noGL/Common/vtkMath.cxx", line 1736.10: 1540-1292 (I) Static declarations are not considered for a function call if the function is not qualified.
"/home/ibmsp/jnorris/DEBUG/src/VTK_noGL/Common/vtkMath.cxx", line 1671.13: 1540-0700 (I) The previous message was produced while processing "vtkOrthogonalize3x3<double,double>(const double (*)[3], double (*)[3])".
"/home/ibmsp/jnorris/DEBUG/src/VTK_noGL/Common/vtkMath.cxx", line 1784.3: 1540-0700 (I) The previous message was produced while processing "vtkMath::Orthogonalize3x3(const double [3][3], double [3][3])".
"/home/ibmsp/jnorris/DEBUG/src/VTK_noGL/Common/vtkMath.cxx", line 1736.10: 1540-0274 (S) The name lookup for "vtkDeterminant3x3" did not find a declaration.
"/home/ibmsp/jnorris/DEBUG/src/VTK_noGL/Common/vtkMath.cxx", line 1736.10: 1540-1292 (I) Static declarations are not considered for a function call if the function is not qualified.
"/home/ibmsp/jnorris/DEBUG/src/VTK_noGL/Common/vtkMath.cxx", line 1671.13: 1540-0700 (I) The previous message was produced while processing "vtkOrthogonalize3x3<float,float>(const float (*)[3], float (*)[3])".
"/home/ibmsp/jnorris/DEBUG/src/VTK_noGL/Common/vtkMath.cxx", line 1779.3: 1540-0700 (I) The previous message was produced while processing "vtkMath::Orthogonalize3x3(const float [3][3], float [3][3])".
--
John Norris
Research Programmer
Center for Simulation of Advanced Rockets
http://www.uiuc.edu/ph/www/jnorris
More information about the vtkusers
mailing list