FAILED: bin/Debug/vtkFiltersReduction-9.3d.dll lib/Debug/vtkFiltersReduction-9.3d.lib cmd.exe /C "cd . && E:\AzureDevOps\cmake-3.26.3-windows-x86_64\bin\cmake.exe -E vs_link_dll --intdir=Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100220~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1438~1.331\bin\Hostx64\x64\link.exe /nologo Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToAffineArrayStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToConstantArrayStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitArrayFilter.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitTypeErasureStrategy.cxx.obj /out:bin\Debug\vtkFiltersReduction-9.3d.dll /implib:lib\Debug\vtkFiltersReduction-9.3d.lib /pdb:bin\Debug\vtkFiltersReduction-9.3d.pdb /dll /version:9.3 /machine:x64 /debug /INCREMENTAL lib\Debug\vtkCommonExecutionModel-9.3d.lib lib\Debug\vtkCommonDataModel-9.3d.lib lib\Debug\vtkCommonTransforms-9.3d.lib lib\Debug\vtkCommonMath-9.3d.lib lib\Debug\vtkkissfft-9.3d.lib lib\Debug\vtkCommonCore-9.3d.lib lib\Debug\vtksys-9.3d.lib ws2_32.lib dbghelp.lib psapi.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." LINK Pass 1: command "C:\PROGRA~1\MICROS~4\2022\COMMUN~1\VC\Tools\MSVC\1438~1.331\bin\Hostx64\x64\link.exe /nologo Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToAffineArrayStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToConstantArrayStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitArrayFilter.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitStrategy.cxx.obj Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug\vtkToImplicitTypeErasureStrategy.cxx.obj /out:bin\Debug\vtkFiltersReduction-9.3d.dll /implib:lib\Debug\vtkFiltersReduction-9.3d.lib /pdb:bin\Debug\vtkFiltersReduction-9.3d.pdb /dll /version:9.3 /machine:x64 /debug /INCREMENTAL lib\Debug\vtkCommonExecutionModel-9.3d.lib lib\Debug\vtkCommonDataModel-9.3d.lib lib\Debug\vtkCommonTransforms-9.3d.lib lib\Debug\vtkCommonMath-9.3d.lib lib\Debug\vtkkissfft-9.3d.lib lib\Debug\vtkCommonCore-9.3d.lib lib\Debug\vtksys-9.3d.lib ws2_32.lib dbghelp.lib psapi.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug/intermediate.manifest Filters\Reduction\CMakeFiles\FiltersReduction.dir\Debug/manifest.res" failed (exit code 1169) with the following output: vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend<float>::vtkConstantImplicitBackend<float>(float)" (??0?vtkConstantImplicitBackend@M@@QEAA@M@Z) already defined in vtkToImplicitRamerDouglasPeuckerStrategy.cxx.obj vtkCommonCore-9.3d.lib(vtkCommonCore-9.3d.dll) : error LNK2005: "public: __cdecl vtkConstantImplicitBackend\
9.3.0就是有这个问题。可以把这个项目关闭,或者用其他的版本。
详见:官网链接
Vtk 9.3.0 Compile Errors with Visual Studio 2022 (Debug) - Development - VTK