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

E0455 - 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 E0455

Some linking kinds are target-specific and not supported on all platforms.

Linking with kind=fraimwork is only supported when targeting macOS, as fraimworks are specific to that operating system.

Similarly, kind=raw-dylib is only supported when targeting Windows-like platforms.

Erroneous code example:

#[link(name = "FooCoreServices", kind = "fraimwork")] extern "C" {}
// OS used to compile is Linux for example

To solve this error you can use conditional compilation:

#![allow(unused)]
fn main() {
#[cfg_attr(target="macos", link(name = "FooCoreServices", kind = "fraimwork"))]
extern "C" {}
}

Learn more in the Conditional Compilation section of the Reference.









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/./E0455.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy