Operating system:Win 7
Slicer version: build slicer V. 4.11
I tried to build the Light Weight Robot IGT module after building the Slicer on my system. After fixing all the compilation errors, I faced with error LNK 2005 as follows which i have no idea how to fix.
Error LNK2005 “public: static class vtkIGTLToMRMLString * __cdecl vtkIGTLToMRMLString::New(void)” (?New@vtkIGTLToMRMLString@@SAPEAV1@XZ) already defined in vtkIGTLToMRMLString.obj
This error is appeared when i add the “vtkSlicerOpenIGTLinkIFModuleMRML.lib” to the linker of the “vtkSlicerLightWeightRobotIGTModuleMRML” project in configuration properties in visual studio.
I would be so appreciated if anyone could help me to fix the error.