<DIV>Hi,</DIV>
<DIV>I had some troubles with vtkQt and VTK 4.2 precompiled binaries.</DIV>
<DIV>I downloaded vtkQt here :</DIV>
<DIV><A href="http://www.matthias-koenig.net/vtkqt/vtk4qt3.tgz">http://www.matthias-koenig.net/vtkqt/vtk4qt3.tgz</A></DIV>
<DIV>I downloaded and compiled VTK 4.4.</DIV>
<DIV>Now it works fine (I use Qt 3.3.2 and VC++ 7.1).</DIV>
<DIV>I compiled in Release (you are in Debug).</DIV>
<DIV>If you still have troubles, try to change&nbsp;your project "runtime library" setting (=&gt; mono/multithread static/dll).</DIV>
<DIV>If it does not work, you should think about upgrading your VC++.</DIV>
<DIV>VC++ 6 is very old and outdated !</DIV>
<DIV>Download for free VC++ Toolkit 2003 and replace your cl.exe and link.exe + the libs.</DIV>
<DIV><A href="http://msdn.microsoft.com/visualc/vctoolkit2003/">http://msdn.microsoft.com/visualc/vctoolkit2003/</A><BR><BR><B><I>David Thompson &lt;scoop_thompson@yahoo.ca&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Hi,<BR><BR>I'm trying to run some of the examples included in the vtkQt package by<BR>Matthias Koenig on Windows using Visual C++ 6, and I am having trouble<BR>linking them. I have created a static library out of vtkQt, and I am using<BR>qmake to create a Visual C++ project.<BR><BR>Here is my qmake setup for the Cone.cxx example:<BR><BR>SOURCES = Cone.cxx<BR>CONFIG += qt thread opengl debug<BR>DEFINES += QT_DLL<BR>INCLUDEPATH += .. $(VTKDIR)/Graphics $(VTKDIR)/Imaging $(VTKDIR)/Common<BR>$(VTKDIR)/Patented $(VTKDIR)/Rendering $(VTKDIR)/Filtering $(VTKDIR)<BR>TMAKE_LIBS<BR>+= -L.. -lvtkqt -L$(VTKBIN) -lvtkGraphics -lvtkImaging -lvtkCommon -lvtkRend<BR>ering -lvtkFiltering<BR>TMAKE_LFLAGS += /nodefaultlib:"msvcrt" /nodefaultlib:"libc"<BR>TARGET = Cone<BR><BR>Here are the errors I get when compiling with Visual C++ 6:<BR><BR>--------------------Configuration: Cone - Win32
 Debug--------------------<BR>Linking...<BR>msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: class<BR>std::basic_ostream<CHAR,STRUCT std::char_traits<char> &gt; &amp; __thiscall<BR>std::basic_ostream<CHAR,STRUCT std::char_traits<char> &gt;::operator&lt;&lt;(int)"<BR>(??6?$basic_ostream@DU?$char_traits@D@std@@@std<BR>@@QAEAAV01@H@Z) already defined in vtkqt.lib(vtkQtRenderWindow.obj)<BR>msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "class<BR>std::basic_ostream<CHAR,STRUCT std::char_traits<char> &gt; &amp; __cdecl<BR>std::operator&lt;&lt;(class std::basic_ostream<CHAR,STRUCT std::char_traits<char><BR>&gt; &amp;,char const *)" (??6std@@YAAAV?$basic_ostream@DU?$cha<BR>r_traits@D@std@@@0@AAV10@PBD@Z) already defined in<BR>vtkqt.lib(vtkQtRenderWindow.obj)<BR>msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall<BR>std::locale::~locale(void)" (??1locale@std@@QAE@XZ) already defined in<BR>vtkqt.lib(vtkQtRenderWindow.obj)<BR>msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public:
 void __thiscall<BR>std::basic_ios<CHAR,STRUCT std::char_traits<char> &gt;::clear(int,bool)"<BR>(?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined<BR>in vtkqt.lib(vtkQtRenderWindow.obj<BR>)<BR>msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall<BR>std::basic_string<CHAR,STRUCT std::char_traits<char>,class<BR>std::allocator<CHAR> &gt;::~basic_string<CHAR,STRUCT<BR>std::char_traits<CHAR>,class std::allocator<CHAR> &gt;(void)" (??1?$basic_strin<BR>g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in<BR>vtkqt.lib(vtkQtRenderWindow.obj)<BR>msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall<BR>std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in<BR>vtkqt.lib(vtkQtRenderWindow.obj)<BR>msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall<BR>std::_Lockit::_Lockit(void)" (??0_Lockit@std@@QAE@XZ) already defined in<BR>vtkqt.lib(vtkQtRenderWindow.obj)<BR>libcp.lib(locale0.obj) : error LNK2005:
 "public: class std::locale::facet<BR>const * __thiscall std::locale::_Getfacet(unsigned int,bool)const "<BR>(?_Getfacet@locale@std@@QBEPBVfacet@12@I_N@Z) already defined in<BR>msvcprtd.lib(MSVCP60D.dll)<BR>libcp.lib(locale0.obj) : error LNK2005: "public: bool __thiscall<BR>std::locale::_Iscloc(void)const " (?_Iscloc@locale@std@@QBE_NXZ) already<BR>defined in msvcprtd.lib(MSVCP60D.dll)<BR>libcp.lib(locale0.obj) : error LNK2005: "private: static class<BR>std::locale::_Locimp * __cdecl std::locale::_Init(void)"<BR>(?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in<BR>msvcprtd.lib(MSVCP60D.dll)<BR>Debug/Cone.exe : fatal error LNK1169: one or more multiply defined symbols<BR>found<BR>Error executing link.exe.<BR><BR>Cone.exe - 11 error(s), 0 warning(s)<BR><BR>Does anybody have any idea what might be causing this, and how I can fix it?<BR><BR>Thanks,<BR>David Thompson<BR><BR>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep
 messages on-topic. Check the FAQ at: <HTTP: vtkfaq cgi-bin public.kitware.com><BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers</BLOCKQUOTE><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>