Error code E0454

A link name was given with an empty name.

Erroneous code example:

#[link(name = "")] extern "C" {}
// error: `#[link(name = "")]` given with empty name
Run

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!
Run

Back to list of error codes