Skip to content

Discuss external linking and linking order #2

Open
@petrochenkov

Description

@petrochenkov

So you get linking errors when using lapacke-sys without some other crate linking to liblapacke.

This was found when testing some linking order changes in rustc in rust-lang/rust#102832 (comment) (build failure - https://crater-reports.s3.amazonaws.com/pr-102832-1/try%230c94de7c1a8f4b82b92d562847c35f513f520c7a/gh/lopez86.rust-mlearn/log.txt).

The dependency on liblapacke should be declared using a #[link] attribute or a build script with cargo:rustc-link-lib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions