How to avoid 2 thirdparty lib all using stb_image caused duplicated symbol collision? #1430
lucasjinreal
announced in
Announcements
Replies: 1 comment
-
This is the fault of the third party libraries, and you should report to them to use STB_IMAGE_STATIC to avoid this problem. If it's only a single library, as a workaround, YOU can use STB_IMAGE_STATIC: define it in the same file as STB_IMAGE_IMPLEMENTATION. the functions will then only be visible in that file. If you need them to be visible in other files, write wrapper functions with new names that call the static functions. If the problem is that two different third-party libraries are conflicting, then there is nothing that can be done without changing at least one of those libraries. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to avoid 2 thirdparty lib all using stb_image caused duplicated symbol collision?
Beta Was this translation helpful? Give feedback.
All reactions