使用std_image报重复引用的错误。
That’s because STB_IMAGE_IMPLEMENTATION needs to be defined within a .c or .cpp file, not within a header. When you define STB_IMAGE_IMPLEMENTATION, you are creating the bulk of the stb_image code. You only want that code to exist once, like the code in your own project, which is why it has to be defined within a .c or .cpp file.
意思是在#define STB_IMAGE_IMPLEMENTATION的时候必须在c或者cpp文件中,而不能在header文件中。