[vtkusers] Marching cubes, VTK and Win32 (fwd)

Greg Slabaugh slabaugh at ece.gatech.edu
Tue Sep 25 10:46:12 EDT 2001


Thank-you all for your help.  A very helpful person pointed out to me that
the marching cubes code in the VTK is patented.  I had to recompile the
vtkdll.dll to include the patented code.  This is easily done by
downloading the VTK source code and following the instructions in the
README.html file.  

Regards,

| Greg Slabaugh
| Graduate Student, Center for Signal and Image Processing at Georgia Tech
| Home page:  http://www.ece.gatech.edu/users/slabaugh

---------- Forwarded message ----------
Date: Mon, 24 Sep 2001 21:16:18 -0400 (EDT)
From: Greg Slabaugh <slabaugh at yamse.ece.gatech.edu>
To: vtkusers at public.kitware.com
Subject: Marching cubes, VTK and Win32

Hello,

I have one more question about VTK and Win32.  I am porting a VTK program
from Unix to Windows.  This program uses marching cubes to display an
isosurface of a volume.  I scaled the program down to the following:

#include <stdio.h>
#include <stdlib.h>
#include <vtk.h>
#include <vtkMarchingCubes.h>

void main() {
  static vtkMarchingCubes  *isosurface;
  isosurface=vtkMarchingCubes::New();
}

When I compile the program, I get the following error message:

commands.obj : error LNK2001: unresolved external symbol
              "__declspec(dllimport) public: static class
              vtkMarchingCubes * __cdecl vtkMarchingCubes::New(void)" 
              (__imp_?New at vtkMarchingCubes@@SAPAV1 at XZ)

I think my linker doesn't know about the method New() of the
vtkMarchingCubes class.  In my environment (MSVC 6.0), I have told my
compiler to link to the vtkdll.lib file that I downloaded from
kitware.com, by specifying this in Project->Settings->Link.  The
vtkdll.dll file was installed in my c:\winnt\system32 directory.  

Any ideas?

Thanks for any insight you may be able to provide.  The program
(almost) works!

Regards,

| Greg Slabaugh
| Graduate Student, Center for Signal and Image Processing at Georgia Tech
| Home page:  http://www.ece.gatech.edu/users/slabaugh





More information about the vtkusers mailing list