Polytonic / Glitter

Dead Simple OpenGL
http://polytonic.github.io/Glitter/
2.48k stars 418 forks source link

STBI Linker Issue on mac(?) #85

Open Sesquipedalian1 opened 6 months ago

Sesquipedalian1 commented 6 months ago

Undefined symbols for architecture arm64: "_stbi_image_free", referenced from: _main in main-c6c8c2.o "_stbi_load", referenced from: _main in main-c6c8c2.o "_stbi_set_flip_vertically_on_load", referenced from: _main in main-c6c8c2.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I set up the stb file as

define STB_IMAGE_IMPLENENTATION

include<stb/stb_image.h>

because I have a separate folder with stbi to keep it the same as everything else. googling it doesn't show a solution, and I'm too dull to figure this out on my own. I tried searching for it, but I haven't seen a solution.