Skip to content

Conversation

@Daydream0929
Copy link

No description provided.

@Daydream0929
Copy link
Author

步骤

  1. 添加一个stb_image_write.cpp文件
  2. 修改stbiw目录下的CMakeLists文件(静态or动态编译成stbiw库)
  3. 添加一个run.sh脚本执行cmake构建任务

疑问 (求解答)

  1. stb_image_write.h中既然已经实现了函数定义,为什么不直接使用.hpp后缀,反而要重新定义一个stb_image_write.cpp?
  2. 为什么要在stb_image_write.cpp中定义宏?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant