# Generator for Eclipse CDT4 Unix Makefiles - Error

**URL:** https://discourse.cmake.org/t/generator-for-eclipse-cdt4-unix-makefiles-error/966
**Category:** Usage
**Created:** [April 9, 2020, 9:36pm UTC](https://discourse.cmake.org/t/generator-for-eclipse-cdt4-unix-makefiles-error/966 "2020-04-09T21:36:11Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![McMartin](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mcmartin/32/150_2.png) [@McMartin](https://discourse.cmake.org/u/McMartin)
#### Post date: [April 13, 2020, 9:59am UTC](https://discourse.cmake.org/t/generator-for-eclipse-cdt4-unix-makefiles-error/966/5 "2020-04-13T09:59:03Z")

</div>

I can see two main issues.

**First issue** : the script `gen.bat` contains some unbalanced quoting.

It contains:

```auto
-DCMAKE_CXX_COMPILER=g++.exe" -DCMAKE_C_COMPILER=gcc.exe"

```

which is equivalent to

```auto
-DCMAKE_CXX_COMPILER="g++.exe -DCMAKE_C_COMPILER=gcc.exe"

```

This makes `cmake` try to run `g++.exe -DCMAKE_C_COMPILER=gcc.exe`, which fails (see `TestCode/cmake/CMakeFiles/CMakeError.log`).

**Second issue** : `make` is maybe not installed.

What exactly is installed in `C:\MinGW`?

The picture “CMake TestCode Setup.jpg” shows that both `gcc` and `g++` are in the `PATH`, but this doesn’t guarantee that `make` is installed and can be run. You can use `where cmake` to check whether `make` can be found.

If all of `make`, `gcc` and `g++` are in the `PATH`, there is no need to pass any `-DCMAKE_*` argument on the command line. `cmake` will find them.

---

_[View the full topic](https://discourse.cmake.org/t/generator-for-eclipse-cdt4-unix-makefiles-error/966)._
