@stahta01: Why suggest something that is not helpful? The current problem is not related to the use of projects! Read below for details.
@Rossati: Please rename your file to have .cpp as extension. You're currently using .c which means you're compiling in C mode and not in C++ mode! After that if you have problems with the missing header then you'll need to update your compiler because it might not be available in this version of GCC!
Also next time you could read our FAQ. This problem is specifically addressed there!