下面的博客写的非常清晰: https://blog.csdn.net/weixin_41143631/article/details/81221777 https://blog.csdn.net/bzhxuexi/article/details/20609145 https://www.thegeekstuff.com/2011/10/c-program-to-an-executable/