[vtkusers] vtkMarchingCubes error
Vetria Byrd
byrdv at cis.uab.edu
Mon Feb 23 12:33:57 EST 2004
I am trying to compile C++ code using vtkMarching Cubes.
Here's some of the code:
#include "vtkMarchingCubes.h"
:
:
vtkVolume16Reader *v16 = vtkVolume16Reader::New();
v16->SetDataDimensions(128,128);
v16->GetOutput()->SetOrigin(0.0,0.0,0.0);
v16->SetDataByteOrderToLittleEndian();
v16->SetFilePrefix("/headsq/half");
v16->SetImageRange(1,93);
v16->SetDataSpacing(1.6,1.6,1.5);
vtkMarchingCubes *iso = vtkMarchingCubes::New();
iso->SetInput(v16->GetOutput() );
iso->SetValue(0,1150);
Which generates the following error messages:
Building executable /mz/hd/byrdv/headbone/headbone...
headbone.o: In function `main':
headbone.o(.text+0x1d4): undefined reference to `vtkMarchingCubes::New(void)'
headbone.o(.text+0x234): undefined reference to `vtkMarchingCubes::SetValue(int, float)'
collect2: ld returned 1 exit status
I have included vtkMarchingCubes.h along with other needed .h files.
Not sure what the problem is. Any assistance would be greatly appreciated.
Thank you,
Vetria
More information about the vtkusers
mailing list