<DIV>Hello</DIV>
<DIV>VC++ needs too 2 others libraries :</DIV>
<DIV>opengl32.lib and glaux32.lib which are already installed with Windows.<BR></DIV>
<DIV>@++</DIV>
<DIV>Ludo</DIV>
<DIV><BR><B><I>REGAT-BARREL Aurélien &lt;arbvtk@yahoo.fr&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<DIV>Hi,<BR>You need to link with vtk libs.<BR>Add the needed vtk libs in the link tab of your project settings<BR>or add this lines somewhere in your code :</DIV>
<DIV>&nbsp;</DIV>
<DIV>#ifdef _MSC_VER // VC++ specific<BR>#pragma comment( lib, "vtkCommon.lib" )<BR>#pragma comment( lib, "vtkRendering.lib" )<BR>#pragma comment( lib, "vtkHybrid.lib" )<BR>#endif</DIV>
<DIV>&nbsp;</DIV>
<DIV>Add all needed vtk libs.<BR>You should download and compile a newer vtk package.<BR>You should also upgrade your compiler to VC++ 7.1<BR><A href="http://msdn.microsoft.com/visualc/vctoolkit2003/">http://msdn.microsoft.com/visualc/vctoolkit2003/</A><BR><BR><B><I>Modelado Estructural &lt;proyestru@yahoo.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<DIV>Hi, I had installed vtk42-LatestRelease, in Windows 98, and I am using visual Studio 6.2, but when I ll try to build the .cpp demo I get this error message:</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV><FONT face=Arial size=2>--------------------Configuration: Cpp11 - Win32 Debug--------------------<BR>Linking...<BR>Cpp11.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderer::AddActor(class vtkProp *)" (__imp_?AddActor@vtkRenderer@@QAEXPAVvtkProp@@@Z)<BR>Cpp11.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow *)" (__imp_?SetRenderWindow@vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z)<BR>Cpp11.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderWindowInteractor * __cdecl vtkRenderWindowInteractor::New(void)" (__imp_?New@vtkRenderWindowInteractor@@SAPAV1@XZ)<BR>Cpp11.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)" (__imp_?New@vtkRenderWindow@@SAPAV1@XZ)<BR>Cpp 11.obj
 : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderer * __cdecl vtkRenderer::New(void)" (__imp_?New@vtkRenderer@@SAPAV1@XZ)<BR>Cpp11.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkActor * __cdecl vtkActor::New(void)" (__imp_?New@vtkActor@@SAPAV1@XZ)<BR>Cpp11.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkPolyDataMapper::SetInput(class vtkPolyData *)" (__imp_?SetInput@vtkPolyDataMapper@@QAEXPAVvtkPolyData@@@Z)<BR>Cpp11.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class vtkPolyData * __thiscall vtkPolyDataSource::GetOutput(void)" (__imp_?GetOutput@vtkPolyDataSource@@QAEPAVvtkPolyData@@XZ)<BR>Cpp11.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)" (__imp_?New@vtkPolyDataMapper@@SAPAV1@XZ)<BR>Cpp11.obj : er ror
 LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkSphereSource * __cdecl vtkSphereSource::New(void)" (__imp_?New@vtkSphereSource@@SAPAV1@XZ)<BR>Debug/Cpp11.exe : fatal error LNK1120: 10 unresolved externals<BR>Error executing link.exe.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Cpp11.exe - 11 error(s), 0 warning(s)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>I think that is a path library error, but I dont know how specify this path.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any idea ?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank in advance.</DIV></DIV>
<P>
<HR SIZE=1>
<FONT face=arial size=-1>Do you Yahoo!?<BR>Friends. Fun. <A href="http://messenger.yahoo.com/">Try the all-new Yahoo! Messenger</A>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: <HTTP: public.kitware.com cgi-bin vtkfaq><BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE></FONT><BR><BR>Aurélien REGAT-BARREL
<P>
<HR SIZE=1>
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! <BR><A href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/mail/mail_taglines/default/*http://fr.benefits.yahoo.com/">Créez votre Yahoo! Mail</A> <BR><BR>Dialoguez en direct avec vos amis grâce à <A href="http://fr.rd.yahoo.com/mail/taglines/*http://fr.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com/">Yahoo! Messenger !</A>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: <HTTP: public.kitware.com cgi-bin vtkfaq><BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE><p>
                Dialoguez en direct avec vos amis grâce à <a href="http://fr.rd.yahoo.com/messenger/mail_taglines/yahoofr/*http://fr.messenger.yahoo.com/downloadactivex/index.html" target="_blank">Yahoo! Messenger !</a>