[vtkusers] _cdeclspec error with VTK 6.1.0 on visual studio 2012

Bill Lorensen bill.lorensen at gmail.com
Sat Mar 29 17:16:48 EDT 2014


Please share the CMakeLists.txt file for your project.


On Sat, Mar 29, 2014 at 1:36 PM, UJJWAL aryan <meetukme at gmail.com> wrote:
> Hi,
>
> I built VTK 6.1.0 from source on Windows 7 64-bit system with Visual Studio
> 2012 Professional version installed. After building the ALL_BUILD and
> INSTALL projects in VTK/build I wrote a simple VTK program (I set up
> appropriate include and library directories, so I know that it is not a
> problem with paths). When I try to build this project , the build does not
> happen because  I end up with a linker error like this :
>
> vtk_1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
> public: void __cdecl vtkRenderer::AddActor(class vtkProp *)"
> (__imp_?AddActor at vtkRenderer@@QEAAXPEAVvtkProp@@@Z) referenced in function
> main
>
> There are about 20 such linker errors. I have checked following things :
>
> a) build configuration is x64 in release mode ( problem remains the same
> same in the debug mode and win32 mode)
>
> b) Compiler configuration change from /MD to /Mt does not change anything.
>
> c) Adding \VTK\bin to system path also does not work.
>
> Can somebody help ?
>
> --
> Ujjwal
> IIIT Hyderabad
> Mob - 8142265628
> ujjwal at research.iiit.ac.in
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list