1、现在对两个文件生成可执行文件

//thanks.c
#include <stdio.h>
int main(void) {
printf("Hello World\n"); thanks_2();
}
//thanks_2.c
#include <stdio.h> int thanks_2(void) {
printf("Hello World2\n");
return ();
}

2、步骤

一、cd 到文件所在目录

二、gcc -c 编译

三、gcc -o 链接

四、./xx  执行

备注:相关cygwin的使用说明,http://www.cnblogs.com/mlj318/archive/2011/09/07/2182351.html

最新文章

  1. WindowsCE project missing Microsoft.CompactFramework.CSharp.targets in Visual Studio 2008
  2. 给HashMap排序,使之成为有序Map
  3. 华为5700s配置链路聚合
  4. 通过RODBC包操作mysql数据库
  5. iOS instancetype or id ?
  6. redis Ok2
  7. Session 的配置和特性
  8. 第3章2节《MonkeyRunner源码剖析》脚本编写示例: MonkeyDevice API使用示例(原创)
  9. css3标签学习总结文章
  10. 导入excel成一个list集合不支持大文件倒入(优化点在于分批分线程导入)
  11. github 之 下载历史版本
  12. Java中的网络支持InetAddress&amp;URL
  13. Cent OS安装使用ffmpeg(完整版)
  14. Hadoop数据分析平台项目实战(基于CDH版本集群部署与安装)
  15. Sql Server插入数据并返回自增ID,@@IDENTITY,SCOPE_IDENTITY和IDENT_CURRENT的区别(转载)
  16. java mail qq邮箱配置 实例
  17. rem 移动端适配
  18. redis内存模型
  19. 长城小主机GW1等型号进BIOS的设置方法
  20. registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

热门文章

  1. JSP EL表达式详细介绍(转)
  2. C# 中的常用正则表达式大全
  3. yum添加源。
  4. node.js中favicon.ico请求两次问题
  5. php 变量
  6. Mongodb 安装和启动
  7. 添加解压缩版Tomcat到系统服务
  8. LogLog
  9. 【csdn】文章很好 - system函数遇到的问题
  10. js算法