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++.)