1>------ 已启动生成: 项目: FiltersReduction, 配置: Debug x64 ------
1>vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<float>::vtkConstantImplicitBackend<float>(float)" (??0?$vtkConstantImplicitBackend@M@@QEAA@M@Z) 已经在 vtkToImplicitRamerDouglasPeuckerStrategy.obj 中定义
1>vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<double>::vtkConstantImplicitBackend<double>(double)" (??0?$vtkConstantImplicitBackend@N@@QEAA@N@Z) 已经在 vtkToImplicitRamerDouglasPeuckerStrategy.obj 中定义
1>vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<char>::vtkConstantImplicitBackend<char>(char)" (??0?$vtkConstantImplicitBackend@D@@QEAA@D@Z) 已经在 vtkToImplicitRamerDouglasPeuckerStrategy.obj 中定义
1>vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<signed char>::vtkConstantImplicitBackend<signed char>(signed char)" (??0?$vtkConstantImplicitBackend@C@@QEAA@C@Z) 已经在 vtkToImplicitRamerDouglasPeuckerStrategy.obj 中定义
1>vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<unsigned char>::vtkConstantImplicitBackend<unsigned char>(unsigned char)" (??0?$vtkConstantImplicitBackend@E@@QEAA@E@Z) 已经在 vtkToImplicitRamerDouglasPeuckerStrategy.obj 中定义
1>vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<short>::vtkConstantImplicitBackend<short>(short)" (??0?$vtkConstantImplicitBackend@F@@QEAA@F@Z) 已经在 vtkToImplicitRamerDouglasPeuckerStrategy.obj 中定义
1>vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<unsigned short>::vtkConstantImplicitBackend<unsigned short>(unsigned short)" (??0?$vtkConstantImplicitBackend@G@@QEAA@G@Z) 已经在 vtkToImplicitRamerDouglasPeuckerStrategy.obj 中定义
1>vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<int>::vtkConstantImplicitBackend<int>(int)" (??0?$vtkConstantImplicitBackend@H@@QEAA@H@Z) 已经在 vtkToImplicitRamerDouglasPeuckerStrategy.obj 中定义
1>vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<unsigned int>::vtkConstantImplicitBackend<unsigned int>(unsigned int)" (??0?$vtkConstantImplicitBackend@I@@QEAA@I@Z) 已经在 vtkToImplicitRamerDouglasPeuckerStrategy.obj 中定义
1>vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<long>::vtkConstantImplicitBackend<long>(long)" (??0?$vtkConstantImplicitBackend@J@@QEAA@J@Z) 已经在 vtkToImplicitRamerDouglasPeuckerStrategy.obj 中定义
1>vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<unsigned long>::vtkConstantImplicitBackend<unsigned long>(unsigned long)" (??0?$vtkConstantImplicitBackend@K@@QEAA@K@Z) 已经在 vtkToImplicitRamerDouglasPeuckerStrategy.obj 中定义
1>vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<__int64>::vtkConstantImplicitBackend<__int64>(__int64)" (??0?$vtkConstantImplicitBackend@_J@@QEAA@_J@Z) 已经在 vtkToImplicitRamerDouglasPeuckerStrategy.obj 中定义
1>vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<unsigned __int64>::vtkConstantImplicitBackend<unsigned __int64>(unsigned __int64)" (??0?$vtkConstantImplicitBackend@_K@@QEAA@_K@Z) 已经在 vtkToImplicitRamerDouglasPeuckerStrategy.obj 中定义
1> 正在创建库 F:/VTKFolders/VTK-Build/lib/Debug/vtkFiltersReduction-9.3d.lib 和对象 F:/VTKFolders/VTK-Build/lib/Debug/vtkFiltersReduction-9.3d.exp
1>F:\VTKFolders\VTK-Build\bin\Debug\vtkFiltersReduction-9.3d.dll : fatal error LNK1169: 找到一个或多个多重定义的符号
1>已完成生成项目“FiltersReduction.vcxproj”的操作 - 失败。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
解决方法:
项目 –> 属性 –> 链接器 –> 命令行 –> 附加选项中 加 /force, (注:/force前面一定要带空格), 如下所示: