The correct way to compile and run all things VTK is by using the latest release of CMake...<br><br>
If you have VTK built with BUILD_TESTING turned on at CMake configure
time, then the TimeRenderer.cxx file should already be built into
RenderingCxxTests.exe.<br>
<br>
I would recommend using VTK/Examples/Tutorial/Step[1-6]/Cxx/ as a starting point for your own code.<br>
<br>
HTH,<br>
David<br>
<br>
<br><div><span class="gmail_quote">On 10/28/06, <b class="gmail_sendername">ahgu</b> <<a href="mailto:ahgu@ahgu.homeunix.com">ahgu@ahgu.homeunix.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am having trouble compiling the TimeRenderer.cxx, what I did was create a<br>win32 console app in vc++ and drag the source code in. I tried to compile<br>and get:<br>What is the correct way to compile and run these test apps?
<br><br>thanks<br>Andrew<br><br><br>--------------------Configuration: test - Win32 Debug--------------------<br>Linking...<br>msvcirtd.lib(MSVCIRTD.dll) : error LNK2005: "public: class ostream &<br>__thiscall ostream::operator<<(double)" (??6ostream@@
QAEAAV0@N@Z) already<br>defined in libcid.lib(ostrdbl.obj)<br>msvcirtd.lib(MSVCIRTD.dll) : error LNK2005: "public: class ostream &<br>__thiscall ostream::operator<<(char const *)" (??6ostream@@QAEAAV0@PBD
@Z)<br>already defined in libcid.lib(ostream.obj)<br>msvcirtd.lib(MSVCIRTD.dll) : error LNK2005: "public: virtual __thiscall<br>ios::~ios(void)" (??1ios@@UAE@XZ) already defined in libcid.lib(_ios.obj)<br>msvcirtd.lib
(MSVCIRTD.dll) : error LNK2005: "protected: __thiscall<br>ios::ios(void)" (??0ios@@IAE@XZ) already defined in libcid.lib(_ios.obj)<br>msvcirtd.lib(MSVCIRTD.dll) : error LNK2005: "public: class ostream &
<br>__thiscall ostream::flush(void)" (?flush@ostream@@QAEAAV1@XZ) already<br>defined in libcid.lib(ostream.obj)<br>msvcirtd.lib(MSVCIRTD.dll) : error LNK2005: "public: long __thiscall<br>ios::flags(void)const " (?flags@ios@@QBEJXZ) already defined in
<br>libcid.lib(_ios.obj)<br>MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _exit already defined in<br>LIBCD.lib(crt0dat.obj)<br>MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in<br>LIBCD.lib(dbgheap.obj)<br>MSVCRTD.lib
(MSVCRTD.dll) : error LNK2005: _malloc already defined in<br>LIBCD.lib(dbgheap.obj)<br>MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _sprintf already defined in<br>LIBCD.lib(sprintf.obj)<br>MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _abort already defined in
<br>LIBCD.lib(abort.obj)<br>MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strncpy already defined in<br>LIBCD.lib(strncpy.obj)<br>MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _realloc already defined in<br>LIBCD.lib(dbgheap.obj
)<br>MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strchr already defined in<br>LIBCD.lib(strchr.obj)<br>MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _strstr already defined in<br>LIBCD.lib(strstr.obj)<br>MSVCRTD.lib(MSVCRTD.dll
) : error LNK2005: _tolower already defined in<br>LIBCD.lib(tolower.obj)<br>LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other<br>libs; use /NODEFAULTLIB:library<br>LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol
<br>_WinMain@16<br>Debug/test.exe : fatal error LNK1120: 1 unresolved externals<br>Error executing link.exe.<br><br>test.exe - 18 error(s), 1 warning(s)<br><br>----- Original Message -----<br>From: "Goodwin Lawlor" <
<a href="mailto:goodwin.lawlor@ucd.ie">goodwin.lawlor@ucd.ie</a>><br>To: <<a href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</a>><br>Sent: Friday, October 27, 2006 1:02 PM<br>Subject: [vtkusers] Re: is VTK good for 3D charting?
<br><br><br>> ahgu wrote:<br>>> Thanks Goodwin,<br>>><br>>> Since I don't know anything about TK/TCL, I want to stick with visual c++<br>>> v6. Is there some sample visual c++ v6 project somewhere that can help me
<br>>> get started?<br>>><br>>> thanks<br>>> Andrew<br>><br>> Hi Andrew,<br>><br>> There were two c++ examples in my last post:<br>> /Widgets/Testing/Cxx/TestSplineWidget.cxx<br>> /Examples/Modelling/Cxx/finance.cxx
<br>><br>> Here's one for vtkGlyph3D (though its not a great example)<br>> /Rendering/Testing/Cxx/TimeRenderer.cxx<br>><br>> There are link from the vtk documentation to examples for each class...<br>><br>
> hth<br>><br>> Goodwin<br>><br>><br>> _______________________________________________<br>> This is the private VTK discussion list. Please keep messages on-topic.<br>> Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>> Follow this link to subscribe/unsubscribe:<br>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>><br><br>_______________________________________________
<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>