gecko0307 / dagon

3D game engine for D
https://gecko0307.github.io/dagon
Other
321 stars 30 forks source link

stb fails to link under linux #70

Closed creutzerb closed 2 years ago

creutzerb commented 2 years ago

Hello,

I get the the problem mentioned here https://github.com/Temtaime/stb/issues/3#issue-950050179 whether it's local or not.

Any idea where that might be coming from ? Thanks.

gecko0307 commented 2 years ago

Seems that compress_for_stb_image_write ends up missing from the binary at link stage. I've added a module constructor that makes a reference to this function so that it is not removed. A bit hacky solution, but should work.

creutzerb commented 2 years ago

Tested Dagon 0.12.0-beta2 - it works