I am building SimpleITK on vanilla Conda with the ITK third party zlib library. Other libraries are coming from conda and appear to use the Conda zlib library. I am seeing the following linking error on windows:
ITKTestKernel.vcxproj -> %SRC_DIR%\b\ITK-build\lib\MinSizeRel\ITKTestKernel-5.3.lib
[4136](https://github.com/SimpleITK/SimpleITKCondaRecipe/actions/runs/4797602534/jobs/8534800625#step:6:4137)
Building Custom Rule C:/Miniconda/envs/bld/conda-bld/work/b/ITK/Modules/Core/TestKernel/src/CMakeLists.txt
[4137](https://github.com/SimpleITK/SimpleITKCondaRecipe/actions/runs/4797602534/jobs/8534800625#step:6:4138)
itkTestDriver.cxx
[4138](https://github.com/SimpleITK/SimpleITKCondaRecipe/actions/runs/4797602534/jobs/8534800625#step:6:4139)
itkzlib-5.3.lib(deflate.obj) : error LNK2005: deflate already defined in z.lib(zlib.dll) [%SRC_DIR%\b\ITK-build\Modules\Core\TestKernel\src\itkTestDriver.vcxproj] [%SRC_DIR%\b\ITK.vcxproj]
[4139](https://github.com/SimpleITK/SimpleITKCondaRecipe/actions/runs/4797602534/jobs/8534800625#step:6:4140)
itkzlib-5.3.lib(deflate.obj) : error LNK2005: deflateEnd already defined in z.lib(zlib.dll) [%SRC_DIR%\b\ITK-build\Modules\Core\TestKernel\src\itkTestDriver.vcxproj] [%SRC_DIR%\b\ITK.vcxproj]
[4140](https://github.com/SimpleITK/SimpleITKCondaRecipe/actions/runs/4797602534/jobs/8534800625#step:6:4141)
itkzlib-5.3.lib(deflate.obj) : error LNK2005: deflateInit2_ already defined in z.lib(zlib.dll) [%SRC_DIR%\b\ITK-build\Modules\Core\TestKernel\src\itkTestDriver.vcxproj] [%SRC_DIR%\b\ITK.vcxproj]
These symbols seem to be name mangled with zlib.def.in. I don’t see where this file is configured, but I’m not familiar with these window def files.
Anyone have more insight into what is and is suppose to be occurring here?
Thanks,
Brad