When asking such questions, try to give the exact error message and which platform you are working on. If possible post a reproduction case with smallest amount of code that can reproduce the problem.
If raylib contains the stb functions you need (in the dll or the lib), you need to include the stb_image.h header and NOTÂ define STB_IMAGE_IMPLEMENTATION. Also it's better if you use the
stb_image.h from raylib github to make sure you use the same version.
| #include "raylib.h"
#include "stb_image.h"
int main( void ) {
int x,y,n;
unsigned char *data = stbi_load(filename, &x, &y, &n, 0);
}
|
That is assuming that you're linking against raylib.lib or raylib_static.lib.
Raylib wiki on github.