Open 183amir opened 6 years ago
The workaround I've used in the past is to add /DBOOST_ZLIB_BINARY=kernel32
to the compiler options. This isn't really an Anaconda issue but an issue with the Boost autolinker, which doesn't handle all the ways boost::iostreams can be built with zlib support.
That being said, it looks like the latest Anaconda boost package (1.65.1_4) is lacking support for zlib entirely so you'll just unresolved symbols instead (I'll open a separate issue for this). The latest version that works for me is 1.61.0_0.
Actual Behavior
I am trying to compile a C++ project that links to boost (system, iostreams, and filesystem) but it fails in the linking stage with the following error:
I have checked and this
libboost_zlib....lib
file does not exist while other similar boost libraries exist. It's not included in my link command either but the linker complains about it.Expected Behavior
Either this file should be available or there should be a way to link to to
boost_iostreams
without getting this error.Steps to Reproduce
This is the list of boost packages that I am using:
To reproduce (on a windows machine): Create an environment with this environment file:
Activate the environment and run:
Anaconda or Miniconda version:
Operating System:
Windows 10
conda info
conda list --show-channel-urls
And here is the full compile log:
ping @alikhoda