当前位置:网站首页>Warning: implicitly declaring library function 'printf' with type 'int (const char *,...)‘
Warning: implicitly declaring library function 'printf' with type 'int (const char *,...)‘
2022-07-02 23:10:00 【Don't be confused afterwards】
solve the problem
warning: implicitly declaring library function 'printf' with type'int (const char *, ...)' [-Wimplicit-function-declaration]
Solutions
because printf This kind of library function is too common , So when the compiler compiles , Found no declaration in source file printf This function uses it directly , Then the compiler will be printf Function implicitly generates a declaration . Now the compiler prompts that it is printf The generated implicit declaration is :int printf(const char *, ...).
Solution
To eliminate this hint , Just add printf Just your statement .printf Function is a library function , Its statement is in stdio.h In the document . therefore , Just add #include <stdio.h> That's all right. .
边栏推荐
- The kth largest element in the [leetcode] array [215]
- Jerry's prototype has no touch, and the reinstallation becomes normal after dismantling [chapter]
- 剑指 Offer II 099. 最小路径之和-双百代码
- Chow-Liu Tree
- Solving ordinary differential equations with MATLAB
- 移动端 1px 像素兼容性问题,实现1px 边框
- ping域名报错unknown host,nslookup/systemd-resolve可以正常解析,ping公网地址通怎么解决?
- How does Jerry test the wrong touch rate of keys [chapter]
- Freshman learning sharing
- Prometheus deployment
猜你喜欢

Qt QScrollArea

阿里云有奖体验:如何使用 PolarDB-X

实现BottomNavigationView和Navigation联动
![[favorite poems] OK, song](/img/1a/e4a4dcca494e4c7bb0e3568f708288.png)
[favorite poems] OK, song
![P7072 [csp-j2020] live broadcast Award](/img/bc/fcbc2b1b9595a3bd31d8577aba9b8b.png)
P7072 [csp-j2020] live broadcast Award

Construction of Hisilicon 3559 universal platform: draw a frame on the captured YUV image

QT qpprogressbar details

PotPlayer设置最小化的快捷键

Qt QSplitter拆分器

中国信通院、清华大学、腾讯安全,云原生安全产学研用强强联合!
随机推荐
[adjustment] postgraduate enrollment of Northeast Petroleum University in 2022 (including adjustment)
泛型与反射,看这篇就够了
Successfully changed Splunk default URL root path
Boot actuator - Prometheus use
Loss function~
Lambda表达式:一篇文章带你通透
SQL advanced syntax
ServletContext learning diary 1
海思 VI接入视频流程
Realize the linkage between bottomnavigationview and navigation
mysql重置密码,忘记密码,重置root密码,重置mysql密码
实现BottomNavigationView和Navigation联动
[Yangcheng cup 2020] easyphp
Typical case of data annotation: how does jinglianwen technology help enterprises build data solutions
Odoo13 build a hospital HRP environment (detailed steps)
Stop slave is stuck -- the event of the transaction is not copied completely
【硬件】标准阻值的由来
海思调用接口之Makefile配置
分布式监控系统zabbix
Minimum spanning tree