C++源代码如何生成可执行文件

先看一段最简单的代码: #include <stdio.h> int main (int argc,char* arg[]) { printf("hello world"); return 0; } 如何把上面的代码转换成可执行的代码呢,一般咱们能够用gcc hello.c 在一样的路径下获得一个a.out的可执行文件。 其实gcc 编译连接一个可执行文件分为4个步骤: 1 预处理(Pre-Pro
相关文章
相关标签/搜索