Closed gvanem closed 3 years ago
What Python version was that? I don't see /MT
when we build on AppVeyor: https://ci.appveyor.com/project/saghul/pycares/build/job/ymp3qxludl3sr8hp
v 3.6, not too old.
Besides, look at all the warnings in AppVeyor; adding a -DCARES_BUILDING_LIBRARY
shoold solve that I think.
Besides, look at all the warnings in AppVeyor; adding a
-DCARES_BUILDING_LIBRARY
shoold solve that I think.
Possibly, but those are warnings, it builds and works ok. I have no idea where your /MT
comes from...
I did a
py -3 setup.py -v build
to try to build with MSVC-2019.But the link failed miserably. I fail to understand how setuptools puts in a
/MT
in theCFLAGS
for MSVC. And with the line insetup_cares.py
:self.extensions[0].extra_link_args = ['/NODEFAULTLIB:libcmt']
the link is doomed to fail:And these errors too (another issue with missing system-libs:
Isn't
/MT
and/NODEFAULTLIB:libcmt
a great contradiction?Anyway, with this patch, it all worked: