title: How to develop a cross-platform C++ project?
body: <p>I'm a C++ beginner and I'm starting to develop my first cross-platform C++ project. I need to use platform-specific calls (Win32 and POSIX) so I need to compile frequently both in Windows and Linux.</p>
  
  <p>Whit single-platform projects I'm using, until now, KDevelop in Linux and Visual Studio 2012 in Windows. </p>
  
  <p>How can I use two different IDEs in two different Operating Systems with the same project?</p>
  
  <ol>
  <li>Should I use a single, cross-platform, IDE?</li>
  <li>Should I learn CMake (or similar) and configure it to work with both IDEs?</li>
  <li>Could/Should I host my code in the web and sync automatically with offline projects?</li>
  <li>Alternatives?</li>
  </ol>
  
  <p>Thanks in advance to everyone.</p>
  
  <p>EDIT: </p>
  
  <p>Just for clarification, the project will be a simple server for a scholastic protocol. There will be a client asking for upload/retrieve some files to/from the server.
  With <em>scholastic</em> I mean that, for example, I have to use pthreads/win32 threads instead of an higher level C++ threads library.</p>