惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threat Research - Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
V
Vulnerabilities – Threatpost
GbyAI
GbyAI
P
Proofpoint News Feed
L
LINUX DO - 热门话题
P
Palo Alto Networks Blog
A
About on SuperTechFans
T
Tenable Blog
M
MIT News - Artificial intelligence
IT之家
IT之家
I
Intezer
D
DataBreaches.Net
爱范儿
爱范儿
T
Threatpost
C
CERT Recently Published Vulnerability Notes
云风的 BLOG
云风的 BLOG
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
K
Kaspersky official blog
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Y
Y Combinator Blog
Cyberwarzone
Cyberwarzone
酷 壳 – CoolShell
酷 壳 – CoolShell
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Help Net Security
Microsoft Security Blog
Microsoft Security Blog
Spread Privacy
Spread Privacy
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
AWS News Blog
AWS News Blog
博客园 - 聂微东
C
Check Point Blog
S
Securelist
有赞技术团队
有赞技术团队
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
D
Docker
G
GRAHAM CLULEY
T
The Exploit Database - CXSecurity.com
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tailwind CSS Blog
L
Lohrmann on Cybersecurity
G
Google Developers Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LangChain Blog

博客园 - uu.Net

修改originate使chan_ss7信令传递原被叫 chan_ss7源码分析 chan_ss7中原被叫号码的传递 oracle循环插入数据用于测试 ORA-12154: TNS: 无法解析指定的连接标识符 使用windows route命令来控制双网卡,双网络访问 JVM优化引起的逻辑错误 box & unbox scribefIre试用手记 mysql长连接和短连接的问题 tomcat入门 Tomcat5部署 logrotate---日志轮转 Centos 时间同步 How to create a gun c/c++ project modules的管理 asterisk上加载G729 codec MySQL C API的一次调用体验 FTP的主动和被动模式
关于gcc的include问题
uu.Net · 2009-12-14 · via 博客园 - uu.Net

这次在写makefile的时候终于对头文件有了完整的理解。

1.编译器有默认的搜索目录,比如c的默认目录就是/usr/include,我们在源文件中引用的

include <stdio.h>就是从此目录下搜索得来

2.编译器不会自动搜索子目录,要引用子目录中的头文件,需要包含从默认路径起的绝对路径,比如include <system/time.h>,其实引用的是/usr/inlcude/system/time.h

3.系统自带的头文件的引用,我们可以使用<>来包含进来,自己引用的路径,我们通过””来包含进来。自己引用的路径,可以通过编译时添加-I参数引用自己的路径,比如

我引用了一个第三方的lib,这个lib的头文件安装在/usr/lib/3rd_lib/include;那么我需要在我的makefile编译参数中添加 –I/usr/lib/3rd_lib/include