gcc 编译和链接
2024-09-01 01:32:46
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
最新文章
- WindowsCE project missing Microsoft.CompactFramework.CSharp.targets in Visual Studio 2008
- 给HashMap排序,使之成为有序Map
- 华为5700s配置链路聚合
- 通过RODBC包操作mysql数据库
- iOS instancetype or id ?
- redis Ok2
- Session 的配置和特性
- 第3章2节《MonkeyRunner源码剖析》脚本编写示例: MonkeyDevice API使用示例(原创)
- css3标签学习总结文章
- 导入excel成一个list集合不支持大文件倒入(优化点在于分批分线程导入)
- github 之 下载历史版本
- Java中的网络支持InetAddress&;URL
- Cent OS安装使用ffmpeg(完整版)
- Hadoop数据分析平台项目实战(基于CDH版本集群部署与安装)
- Sql Server插入数据并返回自增ID,@@IDENTITY,SCOPE_IDENTITY和IDENT_CURRENT的区别(转载)
- java mail qq邮箱配置 实例
- rem 移动端适配
- redis内存模型
- 长城小主机GW1等型号进BIOS的设置方法
- 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.