Closed frutas-fruit closed 2 years ago
Looks like you are including <nanovg_gl.h>
in some other place before it hits your code, or there is a typo in your code. If you can't see it easily, run the C preprocessor over your source file and see what's happening.
Looks like you are including
<nanovg_gl.h>
in some other place before it hits your code
Ah yeah, that's why. Didn't think including it in my hpp header would cause it to throw that error. Thanks for spotting it!
I am defining this in one of my cpp files:
But when I come to init my nanovg context (in the same cpp file), like this:
It throws an error upon compiling:
Any ideas why this is happening? I.e. I have clearly defined both
NANOVG_GL3_IMPLEMENTATION
and includednanovg_gl.h
, so why does it still fail to findnvgCreateGL3
?