Redian新闻
>
gcc 编译的时候要包括 header source file 吗?
avatar
gcc 编译的时候要包括 header source file 吗?# Software - 软件世界
A*1
1
去年买的琴,一直在寻找比较适合自己的琴弦搭配组合,主要是弦的粗细
几个月来,大概试了3种不同的组合,
Ernie Ball 2221 Nickel Regular Slinky Electric Guitar Strings
Gauges 10-13-17-26-36-46. Nickel-plated steel wire wrapped around tin-plated

Ernie Ball 2220 Nickel Power Slinky Electric Guitar Strings
Gauges 11-14-18-28-38-48. Nickel-plated steel wire wrapped around tin-plated
Ernie Ball 2215 Nickel Slinky Skinny Top/Heavy Bottom Electric Guitar
Strings
Gauges 10-13-17-30-42-52.
最早用的组合是 10-13-17-26-36-46,感觉弦的声音太软,虽然手感什么的都很好
11-14-18-28-38-48的
avatar
s*1
2
gcc 编译的时候要包括 header source file 吗?
main.c 的程序中引用了sub.h 和 sub.c 中定义的function pphh(),
***************************************************************
//File: main.c
#include
#include "sub.h"
void main()
{
pphh();
}
*************************************************
//File: sub.h
#ifndef _sub_h
#define _sub_h
void pphh();
#endif
************************************************
//File: sub.c
#include
#include "sub.h"
void pphh()
{
printf("pphh\n");
}
************************
avatar
p*w
3
为了让c语言能运行,有二个步骤——编译和链接。
编译的时候,不需要函数实体,有个 .h 的头文件说明一下接口就可以了
而 link 则需要函数实体才可以,而且函数实体不能重复的

【在 s********1 的大作中提到】
: gcc 编译的时候要包括 header source file 吗?
: main.c 的程序中引用了sub.h 和 sub.c 中定义的function pphh(),
: ***************************************************************
: //File: main.c
: #include
: #include "sub.h"
: void main()
: {
: pphh();
: }

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。