title: Integrate MinGW with Visual Studio 2010 (Makefile Project)
body: <p>I'm trying to get MinGW (Version 4.7.2) working with Visual Studio 2010 to use some of the new C++11 features (sadly I'm still on WindowsXP and can't use Visual Studio 2012).
  To get started, I created a project with:
  File -> New Project -> Visual C++ -> General -> Makefile-Project</p>
  
  <pre><code>General:
  Build Command Line: mingw32-make.exe
  Rebuild All Command Line: mingw32-make.exe rebuild all
  Clean Command Line: mingw32-make.exe clean all
  
  IntelliSense:
  Include Search Path: C:\MinGW\lib\gcc\mingw32\4.7.2\include\c++;C:\MinGW\include;
  Assembly Search Path: C:\MinGW\lib\gcc\mingw32\4.7.2;C:\MinGW\lib;
  Additional Arguments: -std=c++11
  </code></pre>
  
  <p>And I created an makefile with the content:</p>
  
  <pre><code>all:
      g++ -std=c++11 -pthread -o Makefile_Test.exe main.cpp
  </code></pre>
  
  <p>It compiles just fine, but almost everything is wavy red underlined in Visual Studios editor. i.e.</p>
  
  <pre><code>std::vector&lt;std::thread&gt; threads;
  </code></pre>
  
  <p><code>std::vector</code> -> 'Error: namespace std has no member vector'</p>
  
  <p><code>std::thread</code> -> 'Error: namespace std has no member thread'</p>
  
  <p>even <code>std::cout &lt;&lt; "";</code></p>
  
  <p><code>std::cout</code> -> 'Error: namespace std has no member cout'</p>
  
  <p>But I included the correspondending headers of course: and Visual Studio can even find them (place the cursor at #include  -> Ctrl+Shift+G opens the header). My MinGw folder looks like the following:</p>
  
  <pre><code>+ MinGW
  |- bin
  |- doc
  |- include
  |+ lib
   |- gettext
   |+ gcc
    |+ mingw32
     |+ 4.7.2
      |- debug
      |+ include
       |- c++
       |...
      |- include-fixed
      |- install-tools
  |- libexec
  |- mingw32
  |- msys
  |- share
  |- var
  </code></pre>
  
  <p>I also tried to delete the sdf file a few times and let Visual Studio rebuild it from scratch - but all these errors appeared again.</p>
  
  <p>Any ideas what I'm doing wrong here? </p>