[vtkusers] Hi,I have a problem about error that fata l error C1083: Cannot open include file: 'vtkConfigure.h': No such file or directo ry

邵世锋 shifeng.s at 163.com
Fri Aug 18 00:51:17 EDT 2006


Here is my application source:
#include "vtkImageReader.h"
#include "vtkContourFilter.h"
#include "vtkPolyDataMapper.h"
#include "vtkActor.h"
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
void main()
{
 vtkImageReader *image=vtkImageReader::New();
  image->SetFilePrefix("D:\课外学习\vtk\example\FullHead\Data\fullHead");
     image->SetDataExtent(0,127,0,127,1,20);
  image->SetDataOrigin(0,0,0);
 // image->SetFileDimensionality(3);
 vtkContourFilter *contour=vtkContourFilter::New();
        contour->SetInput((vtkDataSet *)image->GetOutput());
     contour->SetValue(0, 800);
  vtkPolyDataMapper *mapper=vtkPolyDataMapper::New();
        mapper->SetInput(contour->GetOutput());
  vtkActor *actor=vtkActor::New();
        actor->SetMapper(mapper);
  vtkRenderer *render=vtkRenderer::New();
        render->AddActor(actor);
  vtkRenderWindow *renwin=vtkRenderWindow::New();
        renwin->AddRenderer(render);
  vtkRenderWindowInteractor *iren=vtkRenderWindowInteractor::New();
  iren->SetRenderWindow(renwin);
     renwin->Render();
     iren->Start();
     // CDialog::OnOK();
}
when I executed it ,there is a fatal error C1083: Cannot open include file: 'vtkConfigure.h': No such file or directory
Error executing cl.exe.
image1.exe - 1 error(s), 0 warning(s)
Does anybody can have me ,thank you very much!
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060818/b6ca664a/attachment.htm>


More information about the vtkusers mailing list