Closed frutas-fruit closed 2 years ago
FYI I am also including these headers once in my project:
#include <nanovg.h>
#define NANOVG_GL3_IMPLEMENTATION
#include <nanovg_gl.h>
And I have not explicitly defined any stb headers anywhere in my project
Did you define STB_IMAGE_IMPLEMENTATION
in your project? It has already defined in nanovg.c So you can try to remove it from nanovg.c It should work
Or try add STB_IMAGE_STATIC
in nanovg.c
It has already defined in nanovg.c So you can try to remove it from nanovg.c It should work
Awesome, yeah commented out STB_IMAGE_IMPLEMENTATION
and STB_TRUETYPE_IMPLEMENTATION
and it works well now! Cheers!
I'm trying to add the nanovg src's to a c++ project. My project currently uses a lib which already has
stb_freetype.h
inlined in it. But this is causing some multiple def linker errors, as nanovg also depends on these stb libs:Any ideas of a clean solution to this issue?