hw01 icon indicating copy to clipboard operation
hw01 copied to clipboard

hw01

Open NinjaCats opened this issue 3 years ago • 0 comments

我尝试了直接编译会返回undefined reference 然后把stbi_write_png的定义拷贝到cpp里面返回0编译通过

加入 STB_IMAGE_WRITE_IMPLEMENTATION 后会返回 multiple definition 也就是说加入了 STB_IMAGE_WRITE_IMPLEMENTATION这个的cpp文件会变成定义的文件

target_compile_definitions这个,好像target有多个cpp文件并都引用了stb_image_write.h不管用 PUBLIC PRIVATE都会报错

NinjaCats avatar Feb 05 '22 17:02 NinjaCats