W3cubDocs

/Rust

Error code E0454

A link name was given with an empty name.

Erroneous code example:

#![allow(unused)]
fn main() {
#[link(name = "")] extern "C" {}
// error: `#[link(name = "")]` given with empty name
}

The rust compiler cannot link to an external library if you don't give it its name. Example:

#[link(name = "some_lib")] extern "C" {} // ok!

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0454.html