[vtkusers] Linker Errors Compiling Application against VTK 7.1 Libraries

Donny Zimmerman zmanvortex at gmail.com
Sat Feb 13 14:44:10 EST 2016


I think I have narrowed the linker errors down to the following lines in my
source files:

#define vtkRenderingCore_AUTOINIT
4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL)
#define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL)

I think I need to change the "vtkRenderingOpenGL" to "vtkRenderingOpenGL2"
and the same with RenderingVolume. I am not sure what to do with
"vtkRenderingFreeTypeOpenGL".

On Sat, Feb 13, 2016 at 1:23 PM, Donny Zimmerman <zmanvortex at gmail.com>
wrote:

> Hello,
> I can compile my Visual Studio 2012 app fine against VTK 6.2 libraries but
> when I try to compile my app against the VTK 7.1 libraries I get 165 linker
> errors. I have changed my directory paths to the correct include and
> library paths for VTK 7.1 in the app properties. I have also added all of
> the VTK 7.1 .lib files to the Additional Dependencies in the app
> properties. I can't figure out what might have changed between VTK versions.
> All of the linker errors are similar with the modules being the only
> difference. Here is the first linker error:
>
> *Error 9 error LNK2028: unresolved token (0A000996) "void __cdecl
>> vtkRenderingVolumeOpenGL_AutoInit_Construct(void)"
>> (?vtkRenderingVolumeOpenGL_AutoInit_Construct@@$$FYAXXZ) referenced in
>> function "public: __thiscall
>> vtkRenderingVolume_AutoInit::vtkRenderingVolume_AutoInit(void)"
>> (??0vtkRenderingVolume_AutoInit@@$$FQAE at XZ)
>> C:\Users\donny.zimmerman.UNMC_DOMAIN\Documents\Visual Studio
>> 2012\Projects\swis\SwisVtkEngine\SwisVtkEngine.obj SwisVtkEngine*
>
>
> Any help would be greatly appreciated.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160213/b824c783/attachment.html>


More information about the vtkusers mailing list