dispatch icon indicating copy to clipboard operation
dispatch copied to clipboard

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

Open Peng1029 opened this issue 2 years ago • 3 comments

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

Peng1029 avatar Aug 06 '22 04:08 Peng1029

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

alexkirsz avatar Aug 06 '22 11:08 alexkirsz

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

Peng1029 avatar Aug 07 '22 17:08 Peng1029

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

SchlongWhisperer avatar Aug 07 '22 18:08 SchlongWhisperer

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.

alexkirsz avatar May 06 '23 19:05 alexkirsz