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.
For some reason this is only when using stb as dependency. When I put it to the project locally, it compiles fine.