[vtkusers] Compiler Warning Message (Ms windows STL)
Sébastien Valette
Sebastien.valette at creatis.insa-lyon.fr
Wed Sep 4 07:11:31 EDT 2002
Hi, I'm experiencing a warning message when including this file in my code:
// Code begin
#include <vector>
#include "vtkDataObject.h"
#include <vtkVRMLImporter.h>
class VTK_EXPORT vtkTest : public vtkObject
{
public:
std::vector <int*> FirstHor;
};
//Code end
The MSVC++ 6.0 compiler returns:
warning C4251: 'FirstHor' : class 'std::vector<int *,class
std::allocator<int *> >' needs to have dll-interface to be used by clients
of class 'vtkTest'
When I remove the third line of the code (#include <vtkVRMLImporter.h>),
the warning message dissapears. This problem may be related to the thread:
http://public.kitware.com/pipermail/vtkusers/2000-October/004519.html
Did anyone already experience this issue?
More information about the vtkusers
mailing list