Skip to content

Undefined reference to _FILE_LINE #38226

Closed
@panicbit

Description

@panicbit

Rustc versions: rustc 1.13.0 (2c6933a 2016-11-07) / rustc 1.15.0-nightly (1c44857 2016-11-28)
Cargo versions: cargo 0.13.0-nightly (eca9e15 2016-11-01) / cargo 0.16.0-nightly (3568be9 2016-11-26)
System: Arch Linux x86_64

Compiling my project via cargo test results in a few undefined reference errors:

<project>/<std macros>:2: undefined reference to `flif::image::color_ranges::ColorRanges::snap::_FILE_LINE::hcb541c8d65ccc329'

They seem to correlate to the debug_assert!s in the snap function.
This commit introduced the method and the issue:

https://github.com/panicbit/flif-rs/blob/2494e08cc7be22393948a015615c9b9cfc888014/src/image/color_ranges.rs#L13-L32

I failed to replicate the issue in the playground, so the issue is either related to my system or to something other than the code in the color_ranges.rs. https://is.gd/ytwc2R

Edit:
I created a minimal example https://github.com/panicbit/rust_issue_38226

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