alexkirsz / dispatch

Combine internet connections, increase your download speed
Apache License 2.0
411 stars 33 forks source link

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

Closed Peng1029 closed 1 year ago

Peng1029 commented 2 years ago

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 commented 2 years ago

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

Peng1029 commented 2 years ago

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

SchlongWhisperer commented 2 years ago

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 commented 1 year ago

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.