Skip to content

Instantly share code, notes, and snippets.

@jedireza
Last active January 23, 2018 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jedireza/90f1b07fda4d591076067b66933efca3 to your computer and use it in GitHub Desktop.
Save jedireza/90f1b07fda4d591076067b66933efca3 to your computer and use it in GitHub Desktop.

Cargo.toml

[package]
name = "app"
version = "0.1.0"
authors = ["reza"]

[dependencies]
unicase="2.1.0"

src/main.rs

extern crate unicase;

fn main() {
    let a = UniCase::new("foobar");
    println!(a);
}
$ cargo run
    Updating registry `https://github.com/rust-lang/crates.io-index`
   Compiling version_check v0.1.3                                               
   Compiling unicase v2.1.0
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/usr/local/rustup/toolchains/1.23.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb.build_script_build0.rcgu.o" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb.build_script_build1.rcgu.o" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb.build_script_build10.rcgu.o" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb.build_script_build11.rcgu.o" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb.build_script_build2.rcgu.o" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb.build_script_build3.rcgu.o" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb.build_script_build4.rcgu.o" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb.build_script_build5.rcgu.o" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb.build_script_build6.rcgu.o" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb.build_script_build7.rcgu.o" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb.build_script_build8.rcgu.o" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb.build_script_build9.rcgu.o" "-o" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb" "/usr/src/app/target/debug/build/unicase-167f0d3757a9a9cb/build_script_build-167f0d3757a9a9cb.crate.allocator.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "-L" "/usr/src/app/target/debug/deps" "-L" "/usr/local/rustup/toolchains/1.23.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/usr/src/app/target/debug/deps/libversion_check-4e7bc4beb79ab10e.rlib" "-L" "/usr/local/rustup/toolchains/1.23.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bdynamic" "-l" "std-58a9e2944951d97f" "-Wl,-Bstatic" "/usr/local/rustup/toolchains/1.23.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-a6b6fad6cc543169.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"
  = note: /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libm.so: file not recognized: File format not recognized
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: Could not compile `unicase`.

To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment