Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal error: 'bits/types.h' file not found

Tags:

c

compilation

When I try to compile a C program on MAC I get the following error message:

/usr/local/include/stdio.h:35:11: fatal error: 'bits/types.h' file not found

#include <bits/types.h>

Does anyone know how to fix this? I have played around with these files before.

Would be much appreciated!

like image 679
Michael Frazis Avatar asked Dec 29 '25 21:12

Michael Frazis


1 Answers

According to this answer.

To Fix the error do the following.

sudo apt-get install build-essential flex libelf-dev libc6-dev-amd64 binutils-dev libdwarf-dev
like image 116
Haris Avatar answered Jan 01 '26 12:01

Haris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!