How to get an appropriate C++ for compiling CMAKE
<p>I use MinGW64+msys on Winodws7 64bit</p>

<p>Now I’m trying to build CMAKE but I can’t.</p>

<p>When I typed <code>./configure</code> soon an error happened. .</p>

<pre><code>---------------------------------------------
CMake 3.2.3, Copyright 2000-2015 Kitware, Inc.
Found GNU toolchain
C compiler on this system is: gcc
---------------------------------------------
Error when bootstrapping CMake:
Cannot find appropriate C++ compiler on this system.
Please specify one using environment variable CXX.
See cmake_bootstrap.log for compilers attempted.
</code></pre>

<p>I also find error messages in Bootstrap.cmk/cmake_bootstrap.log like bellow.</p>

<p>[First Message in the log file]</p>

<pre><code>In file included from c:/mingw64/x86_64-w64-mingw32/include/c++/iosfwd:40:0,^M
                 from c:/mingw64/x86_64-w64-mingw32/include/c++/ios:38,^M
                 from c:/mingw64/x86_64-w64-mingw32/include/c++/ostream:38,^M
                 from c:/mingw64/x86_64-w64-mingw32/include/c++/iostream:39,^M
                 from cmake_bootstrap_4468_test.cxx:3:^M
c:/mingw64/x86_64-w64-mingw32/include/c++/bits/postypes.h:40:35: fatal error: cw
char: No such file or directory^M
compilation terminated.^M
</code></pre>

<p>[Second Message in the log file]</p>

<pre><code>cmake_bootstrap_4468_test.cxx:5:23: fatal error: iostream.h: No such file or dir
ectory^M
compilation terminated.^M
Test failed to compile
</code></pre>

<p>They said <code>cwchar</code> and <code>iostream.h</code> doesn't exist, although I have them and set their path to environmental variable.  </p>

<p>The first massage said my C++ compiler isn’t appropriate. I installed it by <code>mingw-get.exe</code>.</p>

<p>Does anyone know, how can I get appropriate C++ compiler?</p>