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 E0459

A link was used without a name parameter.

Erroneous code example:

#![allow(unused)] fn main() { #[link(kind = "dylib")] extern "C" {} // error: `#[link(...)]` specified without `name = "foo"` }

Please add the name parameter to allow the rust compiler to find the library you want. Example:

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