当前位置:网站首页>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. .
边栏推荐
- Start from the bottom structure to learn the customization and testing of FPGA --- Xilinx ROM IP
- Li Kou brush questions (2022-6-28)
- Application of containerization technology in embedded field
- P7072 [csp-j2020] live broadcast Award
- 从底层结构开始学习FPGA----Xilinx ROM IP的定制与测试
- QT qsplitter splitter
- Odoo13 build a hospital HRP environment (detailed steps)
- Potplayer set minimized shortcut keys
- Boot actuator - Prometheus use
- AES高級加密協議的動機闡述
猜你喜欢
随机推荐
聊聊内存模型与内存序
海思 VI接入视频流程
[favorite poems] OK, song
设置单击右键可以选择用VS Code打开文件
To myself who is about to work
最小生成树 Minimum Spanning Tree
力扣刷题(2022-6-28)
Mask R-CNN
[羊城杯2020]easyphp
BBR 遭遇 CUBIC
[Solved] Splunk: Cannot get username when all users are selected“
Minimum spanning tree
AES高級加密協議的動機闡述
Application of containerization technology in embedded field
Kubernetes uses the host name to allocate the pod on the specified node
[chestnut sugar GIS] ArcScene - how to make elevation map with height
Successfully changed Splunk default URL root path
Freshman learning sharing
ServletContext learning diary 1
Uniapp wechat login returns user name and Avatar