2019年9月8日
摘要: hello.c 编译后 直接运行 && 作用为连接命令 再运行 就查看返回参数 argv作用: main.c文件代码 先把文件编译 然后运行 argc main.c代码: 编译后运行 并加上参数 阅读全文
posted @ 2019-09-08 07:51 潇潇六月雨 阅读(512) 评论(0) 推荐(0)
摘要: # this is make file hello.out: max.o min.o hello.c gcc max.o min.o hello.c -o hello.out max.o:max.c gcc -c max.c min.o:min.c gcc -c min.c 阅读全文
posted @ 2019-09-08 00:11 潇潇六月雨 阅读(135) 评论(0) 推荐(0)
摘要: linux下c语言工程: c文件:主要每个模块的原代码都在c文件中。 h文件:每个c文件都跟着一个h文件,h文件的作用是放着c文件中函数的声明,结构体的定义,宏的定义等。 o文件:目标文件。每个文件经过编译都会形成一个目标文件(二进制文件),多个目标文件链接后才能形成可执行文件。 o文件如何形成: 阅读全文
posted @ 2019-09-08 00:09 潇潇六月雨 阅读(2814) 评论(0) 推荐(0)