I have a main.cpp including a.h (that has its own a.cpp) a.h includes the header only library "stbi_image.h" as such:
#ifndef STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#endif
(https://github.com/nothings/stb)
*.cpp includes its own *.h with the use of #pragma once
But I still get:
LNK1169 one or more multiply defined symbols found LNK2005 stb-failure reason already defined in a.obj file = main.obj ... and a bunch of others
It seems right to me, but as I understand in this question: Multiple definition and header-only libraries
Maybe I should add inline/static to the stb_image.h function I need ? Am I doing something wrong?
Thanks in advance