Error description
error: unknown type name ‘bool’; did you mean ‘_Bool’?
Cause of error
Unknown type name: ‘bool’, because the boolean type is not defined in the C standard (C89), so it will report an error. C99 provides a header file that defines bool, true for 1 and false for 0. Just import stdbool.h and you can manipulate boolean types very easily.
Solution:
//add the header file
#include <stdbool.h>
Read More:
- C# implementation of TXT document to table example code
- [Solved] Error during WebSocket handshake Unexpected response code 404
- [Solved] rs_to_velodyne-master compile Error: POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::PPFRGBSignature
- Successful cases of redis distributed lock
- [Solved] Linux Compile Error: error: ‘for’ loop initial declarations are only allowed in C99 mode
- [Realtek sdk-4.4.1] RTL8198D How to Fix pptp/l2tp HW checksum error issue
- Summary of unity3d 11 SceneManager scene management usage
- print(size_t) Format (You Need to Know)
- C#: How to Use Itextsharp to Manipulate PDF Files
- How to Check Password Modification Complexity
- Detailed explanation of basic lstmcell in tensorflow learning
- [Solved] Ubuntu Open jpg Image Error: Error interpreting JPEG image file (Not a JPEG file: starts with 0x89 0x50)
- Solved: could not find the task ‘G + + build active file, leetcode algorithm ACM compilation and debugging
- [Nginx] Solve the problem of being blocked by CORS policy: No’Access-Control-Allow-Origin’ header is present on the requested resource.
- [Solved] Mount error: Mount: unknown filesystem type ‘defaults’
- Parse error in ubantu/Linux system [How to Solve]
- Linux solves nohup: ignoring input and appending output to “nohup. Out” and nohup: ignoring input redirection error to standard output
- mysqlclient in Ubuntu: How to Solve mysqlclient Install Error
- Vue implements page caching with keep alive
- Solve the problem of 404 Not Found error in nginx accessing dynamic interface