Ugh. For such a simple example, why bother with an IDE at all? Learn how to run the compiler on the command line and/or use a makefile. You can use an IDE when you start building more complex programs, but for learning exercises like this they just get in the way, and maybe even make it harder to learn.