Compiling example v0.1.0 (file:///E:/workspace/rust/example)
error: linking with `link.exe` failed: exit code: 3221225781
|
= note: "link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\feng\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "e:\\workspace\\rust\\example\\target\\debug\\deps\\example-7ff52518be8ec21c.0.o" "/OUT:e:\\workspace\\rust\\example\\target\\debug\\deps\\example-7ff52518be8ec21c.exe" "/OPT:REF,NOICF" "/DEBUG" "/LIBPATH:e:\\workspace\\rust\\example\\target\\debug\\deps" "/LIBPATH:C:\\Users\\feng\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\feng\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-8daf539596fbcd43.rlib" "C:\\Users\\feng\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librand-ce86047000b56785.rlib" "C:\\Users\\feng\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-14e8bb7ca07ebf2c.rlib" "C:\\Users\\feng\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-a4bc20050f473f79.rlib" "C:\\Users\\feng\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-892bd58ec617c3bd.rlib" "C:\\Users\\feng\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-b9c9173c47c20c41.rlib" "C:\\Users\\feng\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc_system-141f235246f01712.rlib" "C:\\Users\\feng\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_unicode-9fbe5d3bbc85c563.rlib" "C:\\Users\\feng\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-3a6338503b91076c.rlib" "C:\\Users\\feng\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-e9e280acad4314a4.rlib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "shell32.lib" "msvcrt.lib"
= note:
error: aborting due to previous error(s)
error: Could not compile `example`.
To learn more, run the command again with --verbose.
3221225781 = 0xc0000135 = STATUS_DLL_NOT_FOUND.
Have you installed the correct .NET framework?
sir, i have install vs_community__315727281.1492649866.exe
and install vc lib see this picture
see issues/1003
and, this probleam solve. ^.^
Rust supposed to be most beloved programming language! oh 2 days and not able to run single line of code on Windows 10, Visual Studio 2017 full installation, Rust version 1.21.0
Keep getting: error: linking with link.exe
failed: exit code: 1181
I gave up!, I will keep using COBOL, looks more modern.
@fakoua For error 1181, see https://github.com/rust-lang/rust/issues/30229#issuecomment-339769458.
I got the same error recently and I found the solution. Make sure your application isn't open while you run the compiler.
Most helpful comment
Rust supposed to be most beloved programming language! oh 2 days and not able to run single line of code on Windows 10, Visual Studio 2017 full installation, Rust version 1.21.0
Keep getting: error: linking with
link.exe
failed: exit code: 1181I gave up!, I will keep using COBOL, looks more modern.