#error: linking with `link.exe`

5 messages · Page 1 of 1 (latest)

languid escarp
#

Following this tutorial/quickstart guide.

I'm following the project's internal rust-toolchain.toml

[toolchain]
channel = "1.87.0"

Rustup show seems to be correct.

installed toolchains
--------------------
1.81-x86_64-pc-windows-msvc (default)
1.87-x86_64-pc-windows-msvc
1.87.0-x86_64-pc-windows-msvc (active)

active toolchain
----------------
name: 1.87.0-x86_64-pc-windows-msvc
active because: overridden by 'D:\temp\output\CounterTest\rust-toolchain.toml'
installed targets:
  wasm32-unknown-unknown
  x86_64-pc-windows-msvc

But it refuses to compile insisting Linking issue. I don't understand what I am doing wrong?
What is going on?
How do I even start debugging?

I will post the error below:

#
error: linking with `link.exe` failed: exit code: 1120
  |
  = note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX64\\x64\\link.exe" "/DEF:C:\\Users\\EAMRSdc\\AppData\\Local\\Temp\\rustc5kAZFz\\lib.def" "/NOLOGO" "C:\\Users\\EAMRSdc\\AppData\\Local\\Temp\\rustc5kAZFz\\symbols.o" "<16 object files omitted>" "D:\\temp\\output\\CounterTest\\target\\release\\deps\\stylus_proc-6f53625c21cff5ac.2hhpdjdvromk6wqex2yhtfkhq.rcgu.rmeta" "<1 object files omitted>" "D:\\temp\\output\\CounterTest\\target\\release\\deps/{liballoy_sol_types-dc010dab12e09dfd.rlib,liballoy_primitives-9101f31b54727f20.rlib,libitoa-5735ca4f0d4152e2.rlib,libbytes-a97cee40faaa10d2.rlib,libconst_hex-7a476fe8f0852d8a.rlib,libcpufeatures-97379f14eb015f86.rlib,libderive_more-7773d909817e04b3.rlib,libruint-f9ece45367612a8f.rlib,libtiny_keccak-cd5436cb990eed80.rlib,libcrunchy-fb4640b2f7ab7f6a.rlib,libsha3-4192c55ec08de8fe.rlib,libkeccak-6970bf060223ecbf.rlib,libdigest-01c91e1071dad6b8.rlib,libblock_buffer-0ad2c43aa57cf7f3.rlib,libcrypto_common-20d59511977e02bb.rlib,libgeneric_array-13eed6f83949e126.rlib,libtypenum-4e6229c22d0c1024.rlib,libregex-d4d6a6a64d06fe7e.rlib,libregex_automata-b39fca1490af73ab.rlib,libaho_corasick-2e6d513850b34d21.rlib,libmemchr-ceee3e58fe51ed6d.rlib,libregex_syntax-d281c7ff6d36fe4b.rlib,liblazy_static-4686777a1d201388.rlib,libsyn_solidity-072f1fc6dff554ef.rlib,libconvert_case-da1e2306b6e7888c.rlib,libunicode_segmentation-9befd9b528b31511.rlib,```
#
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note:    Creating library D:\temp\output\CounterTest\target\release\deps\stylus_proc-6f53625c21cff5ac.dll.lib and object D:\temp\output\CounterTest\target\release\deps\stylus_proc-6f53625c21cff5ac.dll.exp␍
          liballoy_primitives-9101f31b54727f20.rlib(alloy_primitives-9101f31b54727f20.alloy_primitives.7d0f42c00d710270-cgu.2.rcgu.o) : error LNK2019: unresolved external symbol native_keccak256 referenced in function _ZN16alloy_primitives5utils9keccak2569keccak25617he9d0216f26cd749bE␍
          D:\temp\output\CounterTest\target\release\deps\stylus_proc-6f53625c21cff5ac.dll : fatal error LNK1120: 1 unresolved externals␍

languid escarp
languid escarp
#

I keeps complaining this but I literally cannot find anything on google??

error LNK2019: unresolved external symbol native_keccak256 referenced ...
fatal error LNK1120: 1 unresolved externals