memononen / nanovg

Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
zlib License
5.07k stars 767 forks source link

stb_image conflicts with other libraries #198

Open IceDragon200 opened 9 years ago

IceDragon200 commented 9 years ago

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.

meshula commented 9 years ago

You're not the only one running into it.

DCubix commented 5 years ago

I'm having the same problem...