“Unresolved inclusion” error with Eclipse CDT for C standard library headers

I found these answers (including the accepted one) somewhat cryptic.

For me, I had to add the path where stdio.h is located (as @ardnew said). In Eclipse, you open the Properties of your project, expand “C/C++ General” and select “Paths and Symbols”.

Make sure you have added the include dir for each language you are using. (In my case, I needed to just add it to GNU C++.)

Screenshot of Eclipse "Project Properties" dialog with "Paths and Symbols" selected. An "add directory path" dialog is overlaid.

Leave a Comment