[vtkusers] vtk linking under WindowsNT / VisualC++ 6.0

Herbert Muthsam herbert_muthsam at yahoo.de
Wed Jul 18 02:34:46 EDT 2001


Hi, I urgently would need to use vtk but get the
following linking problems under Windows NT / VC++
6.0.
Any help would be greatly appreciated!

Herbert J. MUTHSAM
Institute of Mathematics
University of Vienna
AUSTRIA

Erstellungsprotokoll

--------------------Konfiguration: sphere - Win32
Debug--------------------

Befehlszeilen
Erstellen der temporären Datei  "C:\TEMP\RSP2B.tmp"
mit Inhalten
[
/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D
"_DEBUG" /D "_CONSOLE" /D "_MBCS"
/Fp"Debug/sphere.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD
/GZ /c 
"E:\ps\todo\vtkhjm\sphere\sphere.cpp"
]
Creating command line "cl.exe @C:\TEMP\RSP2B.tmp" 
Erstellen der temporären Datei  "C:\TEMP\RSP2C.tmp"
mit Inhalten
[
kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo
/subsystem:console /incremental:yes
/pdb:"Debug/sphere.pdb" /map:"Debug/sphere.map" /debug
/machine:I386 /out:"Debug/sphere.exe" /pdbtype:sept 
.\Debug\sphere.obj
]
Erstellen der Befehlzeile "link.exe
@C:\TEMP\RSP2C.tmp"
Ausgabefenster
Kompilierung läuft...
sphere.cpp
e:\ps\todo\vtkhjm\sphere\sphere.cpp(42) : warning
C4508: 'main' : Funktion sollte einen Wert
zurueckgeben; Ergebnistyp 'void' angenommen
Linker-Vorgang läuft...
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: void __thiscall
vtkViewport::SetBackground(float,float,float)"
(__imp_?SetBackground at vtkViewport@@QAEXMMM at Z)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: void __thiscall
vtkRenderer::AddActor(class vtkActor *)"
(__imp_?AddActor at vtkRenderer@@QAEXPAVvtkActor@@@Z)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: void __thiscall
vtkProperty::SetColor(float,float,float)"
(__imp_?SetColor at vtkProperty@@QAEXMMM at Z)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: class
vtkProperty * __thiscall vtkActor::GetProperty(void)"
(__imp_?GetProperty at vtkActor@@QAEPAVvtkProperty@@XZ)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: void __thiscall
vtkActor::SetMapper(class vtkMapper *)"
(__imp_?SetMapper at vtkActor@@QAEXPAVvtkMapper@@@Z)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: static class
vtkActor * __cdecl vtkActor::New(void)"
(__imp_?New at vtkActor@@SAPAV1 at XZ)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: void __thiscall
vtkPolyDataMapper::SetInput(class vtkPolyData *)"
(__imp_?SetInput at vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: class
vtkPolyData * __thiscall
vtkPolyDataSource::GetOutput(void)"
(__imp_?GetOutput at vtkPolyDataSource@@QAEPAVvtkPolyData@@XZ)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: static class
vtkPolyDataMapper * __cdecl
vtkPolyDataMapper::New(void)"
(__imp_?New at vtkPolyDataMapper@@SAPAV1 at XZ)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: void __thiscall
vtkSphereSource::SetPhiResolution(int)"
(__imp_?SetPhiResolution at vtkSphereSource@@QAEXH at Z)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: void __thiscall
vtkSphereSource::SetThetaResolution(int)"
(__imp_?SetThetaResolution at vtkSphereSource@@QAEXH at Z)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: void __thiscall
vtkSphereSource::SetRadius(float)"
(__imp_?SetRadius at vtkSphereSource@@QAEXM at Z)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: static class
vtkSphereSource * __cdecl vtkSphereSource::New(void)"
(__imp_?New at vtkSphereSource@@SAPAV1 at XZ)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: void __thiscall
vtkRenderWindowInteractor::SetRenderWindow(class
vtkRenderWindow *)"
(__imp_?SetRenderWindow at vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: static class
vtkRenderWindowInteractor * __cdecl
vtkRenderWindowInteractor::New(void)"
(__imp_?New at vtkRenderWindowInteractor@@SAPAV1 at XZ)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: void __thiscall
vtkRenderWindow::AddRenderer(class vtkRenderer *)"
(__imp_?AddRenderer at vtkRenderWindow@@QAEXPAVvtkRenderer@@@Z)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: static class
vtkRenderer * __cdecl vtkRenderer::New(void)"
(__imp_?New at vtkRenderer@@SAPAV1 at XZ)
sphere.obj : error LNK2001: Nichtaufgeloestes externes
Symbol "__declspec(dllimport) public: static class
vtkRenderWindow * __cdecl vtkRenderWindow::New(void)"
(__imp_?New at vtkRenderWindow@@SAPAV1 at XZ)
Debug/sphere.exe : fatal error LNK1120: 18
unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.



Ergebnisse
sphere.exe - 19 Fehler, 1 Warnung(en)


=====
Univ.-Prof. Dr. Herbert J. MUTHSAM
Trautbach 12, A-3491 Elsarn im Straßertale

***********************************************************
* e: herbert_muthsam at yahoo.de   ** Tel (++43)2735-79 221  *
* http://gauss.mat.univie.ac.at ** Fax (++43)2735-79 301  *
***********************************************************

__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de




More information about the vtkusers mailing list