Skip to content
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

warning: LNK4272: library machine type 'x86' conflicts with target machine type 'x64' #5

Closed
Peng1029 opened this issue Aug 6, 2022 · 4 comments

Comments

@Peng1029
Copy link

Peng1029 commented Aug 6, 2022

I get this error trying to install it... any ideas?

nd..DataLinkReceiverImpl$u20$as$u20$pnet_datalink..DataLinkReceiver$GT$4next17h3a83025691b25060E
          libpnet_datalink-0a34f7a21e78bc2e.rlib(pnet_datalink-0a34f7a21e78bc2e.pnet_datalink.89658d71-cgu.7.rcgu.o) : error LNK2019: unresolved external symbol __imp_PacketGetAdapterNames referenced in function _ZN13pnet_datalink7backend10interfaces17h6779642a4cf78618E
          C:\Users\eendi\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\lib\Packet.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
          C:\Users\eendi\AppData\Local\Temp\cargo-installpwR1se\release\deps\dispatch-536b16db55652398.exe : fatal error LNK1120: 4 unresolved externals

@alexkirsz
Copy link
Owner

What version of windows are you running, and on what CPU?

@Peng1029
Copy link
Author

Peng1029 commented Aug 7, 2022

@alexkirsz I’m running windows 11 with an 11th gen i7

@SchlongWhisperer
Copy link

Make sure to install the right packet.lib, depending of your version of windows, there is both an x64 and x86 version in the sdk zip

@alexkirsz
Copy link
Owner

dispatch no longer depends on pnet_datalink, so this issue cannot occur anymore.

You can either try to build dispatch again, or you can install from pre-built binaries. See the Releases page for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants