Windows 10 Compile with Mingw64: cannot find -lwpcap and cannot find -lcrt
I generally have the luxury of using Masscan in linux, but regrettably there are some remote testing setups that force me to find a way to use masscan in Windows. I do have WSL installed, but unfortunately it has to be version 1 because of virtual environment, which limits anything I can do with Masscan, Nmap, etc.
Therefore, I am trying to compile now in Windows 10 so that I can leverage a python scanning script I developed. I am using mingw64 with npcap installed. I have been able to resolve the majority of compile errors so far, but I am stuck at the end of the make where I am presented with the following:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwpcap: No such file or directory C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lcrt: No such file or directory
I have tried to modify the LDFLAGS and LIBS lines, to include paths to mingw64/lib and npcap/lib, in the Makefile with no success. I tried to order the paths in different ways also and it makes no difference. Any ideas? Thanks for any suggestions.
Windows 10 Compile with Mingw64: cannot find -lwpcap and cannot find -lcrt
I generally have the luxury of using Masscan in linux, but regrettably there are some remote testing setups that force me to find a way to use masscan in Windows. I do have WSL installed, but unfortunately it has to be version 1 because of virtual environment, which limits anything I can do with Masscan, Nmap, etc.
Therefore, I am trying to compile now in Windows 10 so that I can leverage a python scanning script I developed. I am using mingw64 with npcap installed. I have been able to resolve the majority of compile errors so far, but I am stuck at the end of the make where I am presented with the following:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwpcap: No such file or directory C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lcrt: No such file or directory
I have tried to modify the LDFLAGS and LIBS lines, to include paths to mingw64/lib and npcap/lib, in the Makefile with no success. I tried to order the paths in different ways also and it makes no difference. Any ideas? Thanks for any suggestions.