title: mkdir Windows vs Linux
body: <p>I have a problem while porting a Linux tool to Windows. I am using MinGW on a Windows system. I have a class which handles all the in/output and within is this line:</p>
  
  <pre><code>mkdir(strPath.c_str(), 0777); // works on Linux but not on Windows and when it is changed to
  _mkdir(strPath.c_str()); // it works on Windows but not on Linux
  </code></pre>
  
  <p>Any ideas what I can do, so that it works on both systems?</p>