Guest User

Untitled

a guest
May 9th, 2018
74
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ~/manu/crusttest$ rustc -L . main.rs -l doubler.o
  2. error: linking with `cc` failed: exit code: 1
  3. |
  4. = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/home/trsh/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "main.main0.rcgu.o" "main.main1.rcgu.o" "main.main2.rcgu.o" "main.main3.rcgu.o" "-o" "main" "main.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-L" "." "-L" "/home/trsh/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-l" "doubler.o" "-Wl,-Bstatic" "/home/trsh/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-c10c01f750e28d27.rlib" "/home/trsh/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-428f111496747802.rlib" "/home/trsh/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_jemalloc-44df8b23e0916803.rlib" "/home/trsh/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-fbadb5623ab8cc25.rlib" "/home/trsh/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc_system-c7afd75849f41e4c.rlib" "/home/trsh/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-42a81d0277a7a698.rlib" "/home/trsh/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-20751df81794b150.rlib" "/home/trsh/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_unicode-34dbdc699982f60d.rlib" "/home/trsh/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-8e8a91684c5e06e5.rlib" "/home/trsh/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-4e85b1507e729192.rlib" "-Wl,-Bdynamic" "-l" "dl" "-l" "rt" "-l" "pthread" "-l" "pthread" "-l" "gcc_s" "-l" "c" "-l" "m" "-l" "rt" "-l" "pthread" "-l" "util" "-l" "util"
  5. = note: /usr/bin/ld: cannot find -ldoubler.o
  6. collect2: error: ld returned 1 exit status
  7.  
  8.  
  9. error: aborting due to previous error
RAW Paste Data