I've been tasked with writing an application that conditionally compiles to a Win32 GUI application under Windows, or a console application under Linux.
My biggest stumbling block so far is just figuring out how to setup this project. I typically work in Visual Studio 2012 and when creating a new C++ Win32 project have the choice between a console app and a GUI app. I feel like this is setting some project properties and stuff related to the compiler that's going to make it difficult to compile the same project under Linux and have it generate a console application.
The conditional compilation stuff I'm not terribly concerned about, I'm just trying to figure out if I should be compiling this stuff through the command line on Windows rather than using Visual Studio, and how I would be setting the target application to end up as a GUI or console app when doing this.
Hopefully I've explained myself clearly, I think it's obvious I'm pretty lost. Thanks in advance for any help.