Content-Length: 24555 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../../std/../../../error_codes/./E0461.html

E0461 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0461

Couldn’t find crate .. with expected target triple ...

Example of erroneous code:

a.rs

#![crate_type = "lib"]

fn foo() {}

main.rs

extern crate a;

fn main() {
    a::foo();
}

a.rs is then compiled with --target powerpc-unknown-linux-gnu and b.rs with --target x86_64-unknown-linux-gnu. a.rs is compiled into a binary format incompatible with b.rs; PowerPC and x86 are totally different architectures. This issue also extends to any difference in target triples, as std is operating-system specific.

This error can be fixed by:

  • Using Cargo, the Rust package manager, automatically fixing this issue.
  • Recompiling either crate so that they target a consistent target triple.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/string/../error/../string/../../std/../../../error_codes/./E0461.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy