Eclipse stdio.h error
I just downloaded eclipse and made a new c project.
This is my code:
#include <stdio.h>
int main()
{
printf("hello");
}
It's giving me an error saying that stdio.h library is not found. How can I fix this so that my code runs and compiles?
I am running this o开发者_JS百科n windows 7.
That depends on your platform. It's likely that you don't even have a C compiler installed if this is happening. You can probably fix this by installing GCC, but the instructions will vary depending on your OS.
Hope you have Eclipse CDT plugins installed? Go to "Help > Install New Software" and click on "already installed" link to see the list of installed features/plugins in your current installation. Look for "CDT" in this list. If not present then use the p2 repository URL given here in your "Install New Software" dialog to get it installed. You should be good to compile C/C++ projects after this.
Install Wascana from your eclipse that packages mingw and msys
精彩评论