title: Sorry, unimplemented: 64 bit mode not compiled in
body: <p>This is what I'm trying to do(on Windows 7 64-bits):</p>
  <pre><code>g++ -m64 -o main main.cpp
  </code></pre>
  <p>And the error I get is:</p>
  <pre><code>Sorry, unimplemented: 64 bit mode not compiled in ...
  </code></pre>
  <p>I installed mingw-64-install.exe from here: <a href="https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/" rel="nofollow noreferrer">https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/</a></p>
  <p>But I still get the same error. Do I also need to add the path to this folder in the environment variable?</p>
  <p>This is what I get when I type <code>g++ -v</code>:</p>
  <pre><code>Using built-in specs.
  COLLECT_GCC=g++
  COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.9.3/lto-wrapper.exe
  Target: mingw32
  Configured with: ../src/gcc-4.9.3/configure --build=x86_64-pc-linux-gnu    --host=m
  ingw32 --prefix=/mingw --disable-win32-registry --target=mingw32 --with-arch=i58
  6 --enable-languages=c,c++,objc,obj-c++,fortran,ada --enable-static --enable-sha
  red --enable-threads --with-dwarf2 --disable-sjlj-exceptions --enable- version-sp
  ecific-runtime-libs --enable-libstdcxx-debug --with-tune=generic --enable-nls
   Thread model: win32​
   gcc version 4.9.3 &lt;GCC&gt;
  </code></pre>