-1

I am trying to generate binaries from the source code of the gcc-xml software but when I use Cmake I have this error:

The C compiler identification is unknown
The CXX compiler identification is unknown
CMake Error in :
No CMAKE_C_COMPILER could be found.



CMake Error in :
No CMAKE_CXX_COMPILER could be found.



CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present.  A line of code such as

cmake_minimum_required(VERSION 3.2)

should be added at the top of the file.  The version specified may be     lower
if you wish to support older CMake versions for this project.  For more
information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

I don't know why I have this error

Antonio
  • 19,451
  • 13
  • 99
  • 197
Anatch
  • 443
  • 1
  • 5
  • 20
  • 1
    Do you have C compiler installed and on PATH? – Peter Petrik Apr 20 '15 at 12:12
  • That is my point: On Cmake, they ask me what generator do I want and I said: Visual Studio 6. But I don' know if it is installed on my computer because when I type visual studio 6 on my explorer there is nothing. Which C compiler could I use ? I need a c++11 compiler ? – Anatch Apr 20 '15 at 12:14
  • Choose the generator for the compiler you have. You've tagged this `gcc`, so I assume you're using that. If you're on Unix or Cygwin, use the "Unix Makefiles" generator. If you're on MSYS, there's a generator for that as well. – Angew is no longer proud of SO Apr 20 '15 at 12:16
  • No I am on windows, I made a mistake on tagging gcc. I am on windows 7 – Anatch Apr 20 '15 at 12:21

1 Answers1

1

If you use cmake-gui, at the first configuration (=start from a clean directory) you have the option to select the full path to your compiler. Now, of course, you need a compiler installed! So take care of having one.

Antonio
  • 19,451
  • 13
  • 99
  • 197