Skip to content

stb 2.0.1 fails to link under linux #3

@gecko0307

Description

@gecko0307
Linking...
/usr/bin/ld: /home/tim/.dub/packages/stb-2.0.1/stb/bin/libstb.a(main.o): in function `stbi_zlib_compress':
main.c:(.text+0x21621): undefined reference to `compress_for_stb_image_write'
/usr/bin/ld: /home/tim/.dub/packages/stb-2.0.1/stb/bin/libstb.a(main.o): in function `stbi_write_png_to_mem':
main.c:(.text+0x21779): undefined reference to `compress_for_stb_image_write'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
/home/tim/dlang/dmd-2.097.1/linux/bin64/dmd failed with exit code 1.

For some reason this is only when using stb as dependency. When I put it to the project locally, it compiles fine.

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