Skip to content

STBI Linker Issue on mac(?) #85

@SignsofLife

Description

@SignsofLife

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.

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