nanovg icon indicating copy to clipboard operation
nanovg copied to clipboard

stb_image conflicts with other libraries

Open IceDragon200 opened this issue 10 years ago • 2 comments

which also use stb_image.

My current workaround is to use:

#define STB_IMAGE_STATIC
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"

in each of the conflicting libraries (currently SOIL and nanovg) to hide each implementation.

I'm just throwing this out there for anyone else who's had headaches due to this.

IceDragon200 avatar Feb 09 '15 19:02 IceDragon200

You're not the only one running into it.

meshula avatar Feb 09 '15 21:02 meshula

I'm having the same problem...

DCubix avatar May 23 '19 22:05 DCubix