Repository navigation
Compiling Stb_image.h as a static library #1768
Answered
by
Platforming-Mayhem
Platforming-Mayhem
asked this question in
Q&A
|
Hi I'm trying to compile the stb_image.h library as a static library. The issue isn't with the compilation of the static library, it's with the linking against it. It successfully links however I need to include the define before including the header even though I already did it in the static library. Is there anyway to avoid this? |
Answered by
Platforming-Mayhem
Apr 7, 2025
Replies: 1 comment 6 replies
|
You shouldn't need to add the define. What error do you get when you link against the static lib without it? |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

I figured out the issue, it was because of a function I added that used stbi__context.