当前位置:网站首页>#include<>和#include“”的区别
#include<>和#include“”的区别
2022-07-02 21:33:00 【向芯】
一、查找的目录不同
1、#include<>:编译器直接从系统类库目录里查找头文件:
#include<stdio.h>
比如在VS2013中,编译器会直接在<Visual studio 2013安装目录>\VC\include目录下查找到stdio.h这个文件,这就是编译器的类库目录;在Linux GCC编译环境下,一般为/user/include和/usr/local/include。
如果类库目录下查找失败,编译器会终止查找,直接报错:No such file or directory.
例如,我们自定义一个头文件"test.h",把它放在项目工程文件所在目录,然后用“#include <>”的形式加载头文件test.h,编译时会直接报错:No such file or directory.
边栏推荐
- Gbase8s database type
- Hot backup routing protocol (HSRP)
- *C language final course design * -- address book management system (complete project + source code + detailed notes)
- [shutter] statefulwidget component (pageview component)
- Golang embeds variables in strings
- Cloud computing technology [2]
- Import a large amount of data to redis in shell mode
- [shutter] statefulwidget component (floatingactionbutton component | refreshindicator component)
- Construction and maintenance of business websites [9]
- Detailed explanation of OSI seven layer model
猜你喜欢
地理探测器原理介绍
[shutter] statefulwidget component (floatingactionbutton component | refreshindicator component)
[shutter] shutter layout component (Introduction to layout component | row component | column component | sizedbox component | clipoval component)
Browser - clean up the cache of JS in the page
A specially designed loss is used to deal with data sets with unbalanced categories
Gbase8s database type
It is said that this year gold three silver four has become gold one silver two..
D4:非成对图像去雾,基于密度与深度分解的自增强方法(CVPR 2022)
[shutter] shutter layout component (fractionallysizedbox component | stack layout component | positioned component)
26 FPS video super-resolution model DAP! Output 720p Video Online
随机推荐
Accounting regulations and professional ethics [18]
PIP version update timeout - download using domestic image
关于测试用例
Detailed explanation of OSI seven layer model
Go web programming practice (1) -- basic syntax of go language
Micro SD Card Industry Research Report - market status analysis and development prospect forecast
How to test the process of restoring backup files?
Adding data to the head or tail of the rar file can still decompress normally
Research Report on market supply and demand and strategy of China's plastic pump industry
Chargement de l'image pyqt après décodage et codage de l'image
Construction and maintenance of business websites [6]
Cloud computing technology [2]
Go cache of go cache series
Accounting regulations and professional ethics [16]
In depth research and investment feasibility report on the global and China active vibration isolation market 2022-2028
Welfare, let me introduce you to someone
In depth research and investment feasibility report of global and Chinese isolator industry, 2022-2028
One week dynamics of dragon lizard community | 2.07-2.13
rwctf2022_ QLaaS
Blue Bridge Cup Winter vacation homework (DFS backtracking + pruning)