how to compile a project in code block

Hi to all.I`m very new in programming.I want to ask you how to compile a project in code block i have these file names:
-main C++ source
-servoApp C++ source
-servoApp C/C++ header

I am assuming this is an OF App? Your best bet is to copy the emptyExample project and incorporate the files into it.

well how to do that.Is it easier to compile it with visual C++ ?