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

error: linking with link.exe failed: exit code: 3221225781 #42744

Closed
bsed opened this issue Jun 19, 2017 · 5 comments
Closed

error: linking with link.exe failed: exit code: 3221225781 #42744

bsed opened this issue Jun 19, 2017 · 5 comments

Comments

@bsed
Copy link

bsed commented Jun 19, 2017

 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.
@kennytm
Copy link
Member

kennytm commented Jun 19, 2017

3221225781 = 0xc0000135 = STATUS_DLL_NOT_FOUND.

Have you installed the correct .NET framework?

@bsed
Copy link
Author

bsed commented Jun 19, 2017

sir, i have install vs_community__315727281.1492649866.exe and install vc lib see this picture
9b44b996-13dd-11e7-8678-5c9a5a29433d
bd6ab088-13de-11e7-87ca-cfd3dc0ebf59

see issues/1003

and, this probleam solve. ^.^

@bsed bsed closed this as completed Jun 21, 2017
@fakoua
Copy link

fakoua commented Nov 13, 2017

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.

@kennytm
Copy link
Member

kennytm commented Nov 13, 2017

@fakoua For error 1181, see #30229 (comment).

@botahamec
Copy link
Contributor

I got the same error recently and I found the solution. Make sure your application isn't open while you run the compiler.

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

4 participants