How to combine to programs using a project in C++

I created a project and added two programs to it. For some reasons it doesnt want to compile...i get this...
multiple definition of main
first defined here
id returned 1 exit status
[Built Error][Pro.exe] Error 1