Problem with Nightly VTK build with Visual C++
Steve Guerrero
guerrero at gene.com
Thu Dec 2 21:22:14 EST 1999
Hi,
I downloaded the Nightly VTK source tree (from 11/30/99) and built the
vtkdll.dll module successfully, no errors.
I unzipped the nightly source tree over VTK 2.4 (core, C++, and
tcl...but not win32src) and ran PCMAKER with the following settings:
Compiler = Microsoft
Additional toolkits: graphics, imaging, contrib, local.
Include patented algos: yes
build lean vtk: no
build java: no
build tcl: yes
I then run nmake from within the vtkbin\vtkdll and vtkbin\vtktcl
directories and both binaries build with no errors. Curiously, the
vtkdll.dll binaries in the vtk 2.4 release (8.3 MB) is bigger than the
binary generated by the nightly build (7MB).
The problem is, when I try to create a simple C++ app which invokes the
member functions:
vtkRectilinearGrid::SetXCoordinates(class vtkScalars *)
vtkDataSetAttributes::SetScalars(class vtkScalars *)
I get the following error message:
Linking...
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO
specification
main.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
vtkDataSetAttributes::SetScalars(class vtkScalars *)"
(__imp_?SetScalars at vtkDataSetAttributes@@QAEXPAVvtkScalars@@@Z)
main.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
vtkRectilinearGrid::SetXCoordinates(class vtkScalars *)"
(__imp_?SetXCoordinates at vtkRectilinearGrid@@QAEXPAVvtkScalars@@@Z)
Debug/vtkplay.exe : fatal error LNK1120: 2 unresolved externals
A bunch of other methods resolve correctly, for example:
vtkRenderWindowInteractor::New();
vtkRectilinearGrid::SetDimensions(..);
I can see the methods implemented as macros in the source code, so I
don't see why the linker can't find them in the library.
Anyone know why this is happening? This doesn't happen with the VTK 2.4
binaries. Am I not correctly setting things up for a "Nightly" build?
Thanks,
-Steve Guerrero
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list