Tag Archives: GCC Compile Error

[Solved] GCC Compile Error: fatal error: sys/cdefs.h: No such file or directory

Question:

/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or directory

analysis:

Error in compiling 32-bit program on 64 bit host (- M32 option), install the necessary software package;

Solution:

$ sudo apt install gcc-multilib 	# Generally you can install this, if you can't install the following
$ sudo apt install g++-multilib
$ sudo apt install libc6-dev libc6-dev-i386