-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can fix this error?(error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120`) #93
Comments
I am also experiencing this with Python 3.7 (x64) using Build Tools for Visual Studio 2019 on Windows 10 (version 1803, build 17143.950). I have pypcap-1.2.3 and the WinPcap 4.1.2 Developer's Pack. The errors of interest are:
|
I determined that the binary library files in WinPcap 4.1.2 Developer's Pack do not export symbols used in pypcap-1.2.3. I determined this using:
The output did not list When I ran the same command against I was able to get pypcap-1.2.3 to compile with WinPcap 4.1.2 Developer's Pack by commenting out lines 3807-3835 in
and lines 65-66 and 251-254 in
But I wasn't able to use pcapy successfully, with either WinPcap or Npcap installed. It just stalled on |
WinPcap bug - unlikely ever to be fixed, as WinPcap isn't being developed or maintained any more. The .def file used to build the library doesn't list all the newer APIs.
Npcap is based on a newer version of libpcap, in which there is no need for a .def file when building on Windows - symbols that are to be exported by pcap are declared in the appropriate header files with a macro ( That way, when a new API is added, it has to be declared with |
Perhaps we want to make the suggestion of not using WinPcap and favouring Npcap in the Readme even stronger and link to some of the issues (like this one) that can come up when using WinPcap? @guyharris what do you think? |
@emddudley If anyone dosen't mind to use the legacy version, "pypcap 1.2.0" is avaliable for Python3.7 x64 and WinPcap 4.1.3; My Environments: What I do:
|
...and are the result of using WInPcap, which is based on an old version of libpcap that had neither |
Sounds good to me - WinPcap is old and nobody's supporting it any more. |
How can fix this error?
python 3.5 、microsoft visual studio 2019、windows10
The text was updated successfully, but these errors were encountered: