c - VS2015 linker error with python extension -
i'm trying build own python (3.5.2) c extension depends on zlib. gcc on linux works can't seem make work on windows 64-bit.
i installed zlib dll according instructions:
installing zlib1.dll ==================== copy zlib1.dll system or system32 directory. using zlib1.dll microsoft visual c++ ========================================= 1. install supplied header files "zlib.h" , "zconf.h" directory found in include path list. 2. install supplied library file "zdll.lib" directory found in lib path list. 3. add "zdll.lib" project.
my setup.py:
from setuptools import setup, extension cython.build import cythonize setup( ext_modules=cythonize([extension("esp", ["bethlib/esp.pyx", "bethlib/c_esp.c", "bethlib/linked_list.c"], libraries=["zdll"], include_dirs=["include"], library_dirs=["lib"])]), )
trying build python setup.py bdist_wheel
gives error:
c_esp.obj : error lnk2001: unresolved external symbol uncompress build\lib.win-amd64-3.5\esp.cp35-win_amd64.pyd : fatal error lnk1120: 1 unresolved externals error: command 'e:\\program files (x86)\\microsoft visual studio 14.0\\vc\\bin\\x86_amd64\\link.exe' failed exit status 1120
uncompress
valid function present in zlib.h. solutions? thanks!
i downloaded static zlib lib this website , works. it's older version i'd still appreciate if more current version it's enough.
Comments
Post a Comment