-
Notifications
You must be signed in to change notification settings - Fork 295
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
My Project doesn`t link when i use libpnet on windows 10 #332
Comments
The linker error message tells you everything you need to know:
Your loader must be able to find Packet.dll at startup, and the linker must be able to find Packet.Lib at link time. The readme tells you where you can get them. Note that you don't need the nightly (I think?), you can also use Npcap, and you do not neccessarily have to place the .lib into the project folder - putting the .lib into %LIB% and the .dll into %PATH% should be sufficient. |
Oh that is embarassing, not correctly reading the docs and opening an issue. You were totally right after adding the deps everything worked fine. Thank you for your help! |
I've updated the README with your information, thanks @Trolldemorted! @AvasDream Don't worry about it - please feel free to open more issues for anything you need. |
Hey guys, first of all thx for the project and your work. Unfortunately I am to stupid to setup the dependencies on win10. I've installed winpcap 4.1.3 and copied the Package.lib from the zip archive of the 4.1.2 development pack from WpdPack\Lib\x64\Package.lib to myproject\lib\Package.lib I'm still having the linker complaining about the not found file
Do you guys know what I did wrong? |
Hi @fragsalat -- try dumping the Winpcap libraries into your Rust toolchain, not into your project directory and see if that works. In your case: |
Thank you, that worked. I guess %LIB% usually would point to that path or? I seem to don't have these variable in my cmd and therefore didn't tried it. Thanks <3 |
Hello,
i am trying to integrate libpnet in my rust project but i am not able to compile the project after I add libpnet to cargo.toml and import the pnet crate. Is this an issue with my setup?Is libpnet just for *NIX systems?
I replicated the problem on my other windows 10 Laptop (Windows 10 Pro, 10.0.17134 Build 17134).
The continous integration Server i am using (travis-ci.org) had no problems to compile the project, and i assume they have linux at their backend.
Below you can see my
cargo run
output.Every help is appreciated :)
The text was updated successfully, but these errors were encountered: