Ubuntu – fatal error: sys/cdefs.h: No such file or directory|

14.04clibraries

It has been weeks that I am trying to use Code::Blocks IDE on Ubuntu 14.04 LTS to program Atmega16, however I am hindered by the following error while compiling/building the program in C::B

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

I have read this thread
and based on that I have tried to purge libc6-dev and ran into trouble by removing the dependencies. From previous experience I knew that there is a huge probability to get into broken pipe error. I tackled it by installing the lost dependencies.

Now still I have the same error.

Best Answer

If you are on an amd64 installation, you can try to install the package libc6-dev-i386. This helped me solve the same issue you encountered while trying to compile smm from i8kutils.

Related Question