Hi,
I am trying to build lxml 4.2.1 from source with Python 3.7.4 (amd64) and Visual Studio 2015.
Build command is
python setup.py build --static-deps
I get the error below. Any ideas as to what is going wrong? I am going to try a later version of lxml to see if that fixes the problem. I was trying 4.2.1 first as that is what we use for the other platforms we are using.
etree.obj : warning LNK4197: export 'PyInit_etree' specified multiple times; using first specification
Creating library build\temp.win-amd64-3.7\Release\src\lxml\etree.cp37-win_amd64.lib and object build\temp.win-amd64-3.7\Release\src\lxml\etree.cp37-win_amd64.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
libxml2_a.lib(parser.obj) : error LNK2001: unresolved external symbol __imp_memchr
zlib.lib(gzread.obj) : error LNK2001: unresolved external symbol __imp_memchr
libxml2_a.lib(xmlIO.obj) : error LNK2001: unresolved external symbol __imp_strstr
build\lib.win-amd64-3.7\lxml\etree.cp37-win_amd64.pyd : fatal error LNK1120: 2 unresolved externals
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\amd64\\link.exe' failed with exit status 1120