title: Choosing which main function to use in Visual C++ 2010
body: <p>I'm porting a C++ application from Unix and the original developer created several files with main() functions, then use Makefile to choose which main() to use.</p>
  
  <p>How do choose which file contains the main() function in Visual C++ 2010?</p>
  
  <p>Currently, when I compile I get a linker error due to duplicate main() symbols. </p>
  
  <p>The only thing I can think of is macro conditional. </p>
  
  <p>Any other ideas?</p>