[vtkusers] build errors
Amy Squillacote
ahs at cfdrc.com
Tue Feb 12 09:11:49 EST 2008
Hi Kivilcim,
Did you download the source code for VTK 5.0.4, or did you use the
installer for Windows? In order to use VTK from C++, you have to compile
VTK yourself from source code. After you run CMake on VTK, then you must
open the solution file it creates for your version of Visual Studio, and
compile VTK. Once VTK is built, then you can use it in your own C++
projects.
If you had already built VTK from source code, then in your example
program, are you linking against vtkFiltering? That's the library that
contains vtkPolyData.
- Amy
kývýlcým helhel wrote:
> Hello. I'm Kivilcim. i'm new in using vtk and visual
> studio.net <http://studio.net/> 2003 and i face some problem.Hoping to
>
> get your help.
>
> I start with a small code patch.
> It is here:
>
> #include "stdafx.h"
> #include "vtkPolyData.h"
> int main()
> {
> vtkPolyData *profile = vtkPolyData :: New ();
> return 0;
> }
>
> while compiling there is no problem but when I try to build it gives
> the errors below:
>
>
> VTK_Project error LNK2019: unresolved external symbol "public: static class vtkPolyData * __cdecl vtkPolyData::New(void)" (?New at vtkPolyData@@SAPAV1 at XZ) referenced in function _main
> VTK_Project fatal error LNK1120: 1 unresolved externals
>
> I
> compile and build vtk5.0.4 with using cmake and add the paths to the .
> net 2003 platform
>
> C:\VTK\vtk-5.0.4\include\vtk-5.0
> C:\VTK\vtk-5.0.4\lib
>
> What can I do for running a vtk code in c++?
> Help me please...
>
>
> Kivilcim HELHEL
>
>
> ------------------------------------------------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo!
> Search.
> <http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
Amy Squillacote Phone: (256) 726-4839
Computer Scientist Fax: (256) 726-4806
CDF Research Corporation Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL 35805
More information about the vtkusers
mailing list