[Paraview] Windows MPI build error

Bob Anderson banderson at mirarco.org
Tue Apr 15 14:44:15 EDT 2008


We have the ParaView CVS from about a week ago and MPICH2 - just installed. I'm attempting an MPI build with SharedLibraries ON.

The following error results:
------ Build started: Project: vtkCommon, Configuration: Release Win32 ------

Compiling...

vtkCommonInstantiator.cxx

vtkWin32ProcessOutputWindow.cxx

vtkWin32OutputWindow.cxx

vtkTypeFloat64Array.cxx

c:\paraviewtrunk_mpi1659\vtk\common\vtkDataArrayTemplate.h(293) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

 

... from  c:\paraviewtrunk_mpi1659\vtk\common\vtkDataArrayTemplate.h

 

#if !defined(VTK_NO_EXPLICIT_TEMPLATE_INSTANTIATION)

# define VTK_DATA_ARRAY_TEMPLATE_INSTANTIATE(T) \

   template class VTK_COMMON_EXPORT vtkDataArrayTemplate< T >

#else

# include "vtkDataArrayTemplateImplicit.txx"

# define VTK_DATA_ARRAY_TEMPLATE_INSTANTIATE(T)

#endif

 

#endif // !defined(__vtkDataArrayTemplate_h)

 

// This portion must be OUTSIDE the include blockers.  Each

// vtkDataArray subclass uses this to give its instantiation of this

// template a DLL interface.

#if defined(VTK_DATA_ARRAY_TEMPLATE_TYPE)

# if defined(VTK_BUILD_SHARED_LIBS) && defined(_MSC_VER)

#  pragma warning (push)

#  pragma warning (disable: 4091) // warning C4091: 'extern ' : 

   // ignored on left of 'int' when no variable is declared

#  pragma warning (disable: 4231) // Compiler-specific extension warning.

   // Use an "extern explicit instantiation" to give the class a DLL

   // interface.  This is a compiler-specific extension.

[line 293 ->]   extern VTK_DATA_ARRAY_TEMPLATE_INSTANTIATE(VTK_DATA_ARRAY_TEMPLATE_TYPE);

#  pragma warning (pop)

# endif

# undef VTK_DATA_ARRAY_TEMPLATE_TYPE

#endif

 

And, just in case it is also relevant, after telling it to ignore error C4430, the error shifts to:

 

------ Build started: Project: vtkFiltering, Configuration: Release Win32 ------

Compiling...

vtkWedge.cxx

c:\paraviewtrunk_mpi1659\vtk\common\vtkArrayIteratorTemplate.txx(32) : error C2491: 'vtkArrayIteratorTemplate<T>::New' : definition of dllimport function not allowed

c:\paraviewtrunk_mpi1659\vtk\common\vtkArrayIteratorTemplate.txx(35) : error C2491: 'vtkArrayIteratorTemplate<T>::CollectRevisions' : definition of dllimport function not allowed

c:\paraviewtrunk_mpi1659\vtk\common\vtkArrayIteratorTemplate.txx(38) : error C2491: 'vtkArrayIteratorTemplate<T>::SetArray' : definition of dllimport function not allowed

 

... repeated many times.

C2491 = can declare a dllimport - , but not define it.

 

 

Bob Anderson

MIRARCO Mining Innovation

Laurentian University

 



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20080415/72841cb4/attachment.htm>


More information about the ParaView mailing list