Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Linking error with make build #40

@ZapAnton

Description

@ZapAnton

make build and by extension cargo build, cargo test and cargo bench fail with the following error:

error: linking with `cc` failed: exit code: 1
..... A lot of output ....
undefined reference to `PyExc_TypeError'
collect2: error: ld returned 1 exit status

Perhaps the build command should be modified to match setuptools-rust one?

E.g.

cargo rustc --lib --manifest-path Cargo.toml --features pyo3/extension-module pyo3/python3 --release -- --crate-type cdylib

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions