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:
- [Solved] GCC Compile Error: fatal error: sys/cdefs.h: No such file or directory
- [Solved] Linux Kernel Compile Error: make menuconfig‘ requires the ncurses libraries
- [Solved] Linux Compile Error: error: ‘for’ loop initial declarations are only allowed in C99 mode
- Kylin arm64 linux configure: error: cannot guess build type; you must specify one
- [Solved] Mount error: Mount: unknown filesystem type ‘defaults’
- [Solved] gcc: error trying to exec ‘cc1‘: execvp: No such file or directory
- [Solved] Linux — 9 — txt files are copied from windows to Linux and read error
- [Solved] yum Install gcc Error: Error: Package: glibc-headers-2.17-317.el7.x86_64
- [Solved] Linux Error: mipsel-linux-gcc: fatal error: no input files
- [Solved] rs_to_velodyne-master compile Error: POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::PPFRGBSignature
- tuxedo Compile Background Common Error [How to Fix]
- [Solved] Docker error: “unknown runtime specified NVIDIA” using GPU“
- Ubuntu18.04 Compile Error: android 7 FAILED [How to Solve]
- [Solved] Centos7 Error: gcc: configure: error: in build‘: configure: error: no acceptable C compiler found in $PATH
- [docker][issue]Error response from daemon: mkdir xxx: file exists: unknown
- Debian9 g++ Compile Error: error: ‘EDOM’ was not declared in this scope
- Ubuntu18.04 Compile A40i SDK Error: misc/create_inode.c:395:18: error: conflicting types for ‘copy_file_range‘
- How to Solve dyn_small_obs_avoidance Compile Error (eigen version Issue)
- Runtime error – [xcodeproj] unknown object version. [How to Solve]
- [Solved] curl: (6) Could not resolve host: harbor.od.com; Unknown error