title: How to setup MinGw on Windows 7 64 bit?
body: <p>Before I get any down votes, I would like to say that I am a Mechanical guy with avid interest in C++ programming. Until today I have used VS 2010 Express &amp; Qt Creator to suffice my needs. But now I want to compile Qt Creator in MinGw because the standard SDK is for 32 bit only. I have tried searching for clear instructions on the MinGW wiki, sourceforge, Blogs, etc. But that language is almost understandable for me. I want a Standard C++ Compiler which can Compile 64 as well as 32 bit applications on my Windows 7 64 bit Laptop.
  Eventually I downloaded</p>
  
  <p><a href="http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Automated%20Builds/mingw-w32-bin_i686-mingw_20111219.zip/download" rel="nofollow noreferrer">http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Automated%20Builds/mingw-w32-bin_i686-mingw_20111219.zip/download</a></p>
  
  <p>When I extracted it to C:/MinGw64. The targets were like x86_64-w64-mingw32-gcc.exe, x86_64-w64-mingw32-g++.exe. I added them to the PATH Env variable &amp; it compiles my program, but the name is so long.
  The steps to verify over here:
  <a href="https://stackoverflow.com/questions/10860352/getting-started-with-opencv-2-4-and-mingw-on-windows-7">Getting started with OpenCV 2.4 and MinGW on Windows 7</a></p>
  
  <p>In the correct answer the command is "g++ -I"C:\opencv\build\include" -L"C:\opencv\build\x86\mingw\lib" loadimg.cpp -lopencv_core243 -lopencv_highgui243 -o loadimg"
  but this doesnt work for me. I have to enter "x86_64-w64-mingw32-g++" for compling.
  Have I done anything wrong?
  &amp; which do I use to compile 32 bit apps?</p>
  
  <p>Sorry if this is a very stupid question for you guys but I am pretty new to this stuff.
  Thank You1</p>